Skip to content

Instantly share code, notes, and snippets.

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/6cdcb37e9f3d191fd58d300ef52807d9 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/6cdcb37e9f3d191fd58d300ef52807d9 to your computer and use it in GitHub Desktop.
Hook um_submit_form_errors_hook__blockedemails
<?php
/**
* Hook: um_submit_form_errors_hook__blockedemails
*
* Type: action
*
* Description: Fires on the form validation.
* Used in the core to verify members by their Email before login.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/um-actions-form.php#L150
* @link https://docs.ultimatemember.com/article/1275-umsubmitformerrorshookblockedemails
*
* @package um\core
* @see um_submit_form_errors_hook()
* @see um_submit_form_errors_hook__blockedemails()
* @see um_wp_form_errors_hook_ip_test()
* @since 2.0
* @version 3.0
*
* @param array $args Form arguments.
*/
function my_submit_form_errors_hook__blockedemails( $args ) {
// your code here.
}
add_action( 'um_submit_form_errors_hook__blockedemails', 'my_submit_form_errors_hook__blockedemails', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment