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 |
---|---|
115 | require_once ABSPATH . 'wp-admin/admin-header.php'; |
116 | ?> |
117 |
|
118 | <div class="wrap"> |
119 | <h1><?php echo esc_html( $title ); ?></h1> |
120 |
|
121 | <?php |
122 | if ( ! empty( $_GET['admin_email_remind_later'] ) ) : |
123 | /** This filter is documented in wp-login.php */ |
124 | $remind_interval = (int) apply_filters( 'admin_email_remind_interval', 3 * DAY_IN_SECONDS ); |
125 | $postponed_time = get_option( 'admin_email_lifespan' ); |
126 |
|
127 | /* |
128 | * Calculate how many seconds it's been since the reminder was postponed. |
129 | * This allows us to not show it if the query arg is set, but visited due to caches, bookmarks or similar. |
130 | */ |
131 | $time_passed = time() - ( $postponed_time - $remind_interval ); |
132 |
|
133 | // Only show the dashboard notice if it's been less than a minute since the message was postponed. |