Action: um_pre_{$mode}_shortcode

do_action( 'um_pre_{$mode}_shortcode', $args )

Fires before loading form shortcode.

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

Parameters:
Name Type Description
$args array

Form shortcode arguments.

Since:
  • 1.3.x
Source:
Examples

Make any custom action before loading a registration form shortcode.

function my_pre_register_shortcode( $args ) {
    // your code here
}
add_action( 'um_pre_register_shortcode', 'my_pre_register_shortcode' );

Make any custom action before loading a login form shortcode.

function my_pre_login_shortcode( $args ) {
    // your code here
}
add_action( 'um_pre_login_shortcode', 'my_pre_login_shortcode' );

Make any custom action before loading a password reset form shortcode.

function my_pre_password_shortcode( $args ) {
    // your code here
}
add_action( 'um_pre_password_shortcode', 'my_pre_password_shortcode' );

Make any custom action before loading a profile form shortcode.

function my_pre_profile_shortcode( $args ) {
    // your code here
}
add_action( 'um_pre_profile_shortcode', 'my_pre_profile_shortcode' );

Make any custom action before loading an account form shortcode.

function my_pre_account_shortcode( $args ) {
    // your code here
}
add_action( 'um_pre_account_shortcode', 'my_pre_account_shortcode' );