Filter hook 'admin_email_remind_interval'

in WP Core File wp-admin/index.php at line 146

View Source

admin_email_remind_interval

Filter Hook
Description
Dashboard Administration Screen

Hook Information

File Location wp-admin/index.php View on GitHub
Hook Type Filter
Line Number 146

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into admin_email_remind_interval
add_filter('admin_email_remind_interval', 'my_custom_filter');

function my_custom_filter() {
    // Your custom filtering logic here
    return 'modified_value';
}

Source Code Context

wp-admin/index.php:146 - How this hook is used in WordPress core
<?php
 141  	<h1><?php echo esc_html( $title ); ?></h1>
 142  
 143  	<?php
 144  	if ( ! empty( $_GET['admin_email_remind_later'] ) ) :
 145  		/** This filter is documented in wp-login.php */
 146  		$remind_interval = (int) apply_filters( 'admin_email_remind_interval', 3 * DAY_IN_SECONDS );
 147  		$postponed_time  = get_option( 'admin_email_lifespan' );
 148  
 149  		/*
 150  		 * Calculate how many seconds it's been since the reminder was postponed.
 151  		 * This allows us to not show it if the query arg is set, but visited due to caches, bookmarks or similar.

PHP Documentation

<?php
/**
 * Dashboard Administration Screen
 *
 * @package WordPress
 * @subpackage Administration
 */
Quick Info
  • Hook Type: Filter
  • Parameters: 0
  • File: wp-admin/index.php
Related Hooks

Related hooks will be displayed here in future updates.