Skip to content

Instantly share code, notes, and snippets.

@yuriinalivaiko
Created November 4, 2022 12:38
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/a8650bcc7c24ec851a0d26895b745aa2 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/a8650bcc7c24ec851a0d26895b745aa2 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 validation.
* Used in the core to process form errors.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/um-actions-form.php#L293
* @link https://docs.ultimatemember.com/article/1274-umsubmitformerrorshook
*
* @package um\core
* @see um_submit_form_errors_hook()
* @see um_submit_form_errors_hook_()
* @since 2.0
* @version 3.0
*
* @param array $args Form arguments.
*/
function my_submit_form_errors_hook_( $args ) {
// your code here.
}
add_action( 'um_submit_form_errors_hook_', 'my_submit_form_errors_hook_', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment