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 |
|---|---|
| 19 | if ( 'mail.example.com' === $mailserver_url || empty( $mailserver_url ) ) { |
| 20 | wp_die( __( 'This action has been disabled by the administrator.' ), 403 ); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Fires to allow a plugin to do a complete takeover of Post by Email. |
| 25 | * |
| 26 | * @since 2.9.0 |
| 27 | */ |
| 28 | do_action( 'wp-mail.php' ); |
| 29 | |
| 30 | /** Get the POP3 class with which to access the mailbox. */ |
| 31 | require_once( ABSPATH . WPINC . '/class-pop3.php' ); |
| 32 | |
| 33 | /** Only check at this interval for new messages. */ |
| 34 | if ( !defined('WP_MAIL_INTERVAL') ) |
| 35 | define('WP_MAIL_INTERVAL', 300); // 5 minutes |
| 36 | |
| 37 | $last_checked = get_transient('mailserver_last_checked'); |