Action: um_main_{$mode}_fields

do_action( 'um_main_{$mode}_fields', $args )

Fires for rendering UM Form fields.

Note: $mode can be equals to 'login', 'profile', 'register'.

Parameters:
Name Type Description
$args array

UM Form shortcode arguments.

Since:
  • 1.3.x
Source:
Examples

Make any custom action when profile form fields are rendered.

function my_main_profile_fields( $args ) {
    // your code here
}
add_action( 'um_main_profile_fields', 'my_main_profile_fields' );

Make any custom action when login form fields are rendered.

function my_main_login_fields( $args ) {
    // your code here
}
add_action( 'um_main_login_fields', 'my_main_login_fields' );

Make any custom action when register form fields are rendered.

function my_main_register_fields( $args ) {
    // your code here
}
add_action( 'um_main_register_fields', 'my_main_register_fields' );