check_admin_referer хук-событие . WP 1.5.1
Fires once the admin request has been validated or not.
Использование
add_action( 'check_admin_referer', 'action_function_name_5743', 10, 2 ); function action_function_name_5743( $action, $result ){ // action... }
- $action(строка)
- The nonce action.
- $result(false/число)
- False if the nonce is invalid, 1 if the nonce is valid and generated between
0-12 hours ago, 2 if the nonce is valid and generated between 12-24 hours ago.
Список изменений
С версии 1.5.1 | Введена. |
Где вызывается хук
check_admin_referer
wp-includes/pluggable.php 1126
do_action( 'check_admin_referer', $action, $result );