Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: admin_email_remind_interval

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
598           /**
599            * Filters the interval for dismissing the admin email confirmation screen.
600            *
601            * If `0` (zero) is returned, the "Remind me later" link will not be displayed.
602            *
603            * @since 5.3.1
604            *
605            * @param int $interval Interval time (in seconds). Default is 3 days.
606            */
607           $remind_interval = (int) apply_filters( 'admin_email_remind_interval', 3 * DAY_IN_SECONDS );
608
609           if ( ! empty( $_GET['remind_me_later'] ) ) {
610                if ( ! wp_verify_nonce( $_GET['remind_me_later'], 'remind_me_later_nonce' ) ) {
611                     wp_safe_redirect( wp_login_url() );
612                     exit;
613                }
614
615                if ( $remind_interval > 0 ) {
616                     update_option( 'admin_email_lifespan', time() + $remind_interval );