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
function my_pre_register_shortcode( $args ) {
// your code here
}
add_action( 'um_pre_register_shortcode', 'my_pre_register_shortcode' );
function my_pre_login_shortcode( $args ) {
// your code here
}
add_action( 'um_pre_login_shortcode', 'my_pre_login_shortcode' );
function my_pre_password_shortcode( $args ) {
// your code here
}
add_action( 'um_pre_password_shortcode', 'my_pre_password_shortcode' );
function my_pre_profile_shortcode( $args ) {
// your code here
}
add_action( 'um_pre_profile_shortcode', 'my_pre_profile_shortcode' );
function my_pre_account_shortcode( $args ) {
// your code here
}
add_action( 'um_pre_account_shortcode', 'my_pre_account_shortcode' );