Created
November 4, 2022 12:22
-
-
Save yuriinalivaiko/1517072238d624992a3593dcdf41d164 to your computer and use it in GitHub Desktop.
Hook um_submit_form_errors_hook__blockedips
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__blockedips | |
* | |
* Type: action | |
* | |
* Description: Fires on the form validation. | |
* Used in the core to verify members by their IP before login. | |
* | |
* @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/um-actions-form.php#L128 | |
* @link https://docs.ultimatemember.com/article/1276-umsubmitformerrorshookblockedips | |
* | |
* @package um\core | |
* @see um_submit_form_errors_hook() | |
* @see um_submit_form_errors_hook__blockedips() | |
* @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__blockedips( $args ) { | |
// your code here. | |
} | |
add_action( 'um_submit_form_errors_hook__blockedips', 'my_submit_form_errors_hook__blockedips', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment