WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 478 | /** |
| 479 | * Filters the interval for dismissing the admin email confirmation screen. |
| 480 | * |
| 481 | * If `0` (zero) is returned, the "Remind me later" link will not be displayed. |
| 482 | * |
| 483 | * @since 5.3.1 |
| 484 | * |
| 485 | * @param int $interval Interval time (in seconds). Default is 3 days. |
| 486 | */ |
| 487 | $remind_interval = (int) apply_filters( 'admin_email_remind_interval', 3 * DAY_IN_SECONDS ); |
| 488 | |
| 489 | if ( ! empty( $_GET['remind_me_later'] ) ) { |
| 490 | if ( ! wp_verify_nonce( $_GET['remind_me_later'], 'remind_me_later_nonce' ) ) { |
| 491 | wp_safe_redirect( wp_login_url() ); |
| 492 | exit; |
| 493 | } |
| 494 | |
| 495 | if ( $remind_interval > 0 ) { |
| 496 | update_option( 'admin_email_lifespan', time() + $remind_interval ); |