Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuriinalivaiko/3443ae1090f3383eb9980d680d03ed08 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/3443ae1090f3383eb9980d680d03ed08 to your computer and use it in GitHub Desktop.
Hook um_submit_form_errors_hook
<?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