Created
November 4, 2022 12:13
-
-
Save yuriinalivaiko/17db8103c6e17cf86454052b4ad96207 to your computer and use it in GitHub Desktop.
Hook um_before_submit_form_post
This file contains 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_submit_form_post | |
* | |
* Type: action | |
* | |
* Description: Fires on the form submit before validation. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-form.php#L424 | |
* @link https://docs.ultimatemember.com/article/1063-umbeforesubmitformpost | |
* | |
* @package um\core | |
* @see um\core\Form::form_init() | |
* @since 2.0 | |
* @version 3.0 | |
*/ | |
function my_before_submit_form_post() { | |
// your code here. | |
} | |
add_action( 'um_before_submit_form_post', 'my_before_submit_form_post', 10 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment