Created
November 4, 2022 12:19
-
-
Save yuriinalivaiko/3443ae1090f3383eb9980d680d03ed08 to your computer and use it in GitHub Desktop.
Hook um_submit_form_errors_hook
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_submit_form_errors_hook | |
* | |
* Type: action | |
* | |
* Description: Fires on the form submit. | |
* Used in the core to manage a form verification by the form type. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-form.php#L569 | |
* @link https://docs.ultimatemember.com/article/1273-umsubmitformerrorshook | |
* | |
* @package um\core | |
* @see um\core\Form::form_init() | |
* @see um_submit_form_errors_hook() | |
* @since 2.0 | |
* @version 3.0 | |
* | |
* @param array $post Post data. | |
*/ | |
function my_submit_form_errors( $post ) { | |
// your code here. | |
} | |
add_action( 'um_submit_form_errors_hook', 'my_submit_form_errors', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment