Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yuriinalivaiko/f93da40c8864e6ebd236b0f3f4ee67f2 to your computer and use it in GitHub Desktop.
Save yuriinalivaiko/f93da40c8864e6ebd236b0f3f4ee67f2 to your computer and use it in GitHub Desktop.
Hook um_submit_form_errors_hook__blockedwords
<?php
/**
* Hook: um_submit_form_errors_hook__blockedwords
*
* Type: action
*
* Description: Fires on the form validation.
* Used in the core to validate username and email by blocked words.
*
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/um-actions-form.php#L271
* @link https://docs.ultimatemember.com/article/1277-umsubmitformerrorshookblockedwords
*
* @package um\core
* @see um_submit_form_errors_hook()
* @see um_submit_form_errors_hook__blockedwords()
* @since 2.0
* @version 3.0
*
* @param array $args Form arguments.
*/
function my_submit_form_errors_hook__blockedwords( $args ) {
// your code here.
}
add_action( 'um_submit_form_errors_hook__blockedwords', 'my_submit_form_errors_hook__blockedwords', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment