Last active
November 4, 2022 19:58
-
-
Save yuriinalivaiko/225aa00fa2f0806cf8b6079176f1bd34 to your computer and use it in GitHub Desktop.
Hook um_before_form_is_loaded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Hook: um_before_form_is_loaded | |
* | |
* Type: action | |
* | |
* Description: Fires before the form shortcode is loaded. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-password.php#L219 | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-shortcodes.php#L772 | |
* @link https://docs.ultimatemember.com/article/1060-umbeforeformisloaded | |
* | |
* @package um\core | |
* @see um\core\Password::ultimatemember_password() | |
* @see um\core\Shortcodes::load() | |
* @since 2.0 | |
* @version 3.0* Removed from the Password form. | |
* | |
* @param array $args Form shortcode arguments. | |
*/ | |
function my_before_form_is_loaded( $args ) { | |
// your code here. | |
} | |
add_action( 'um_before_form_is_loaded', 'my_before_form_is_loaded', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment