wp-mail.php
Action HookDescription
Fires to allow a plugin to do a complete takeover of Post by Email.Hook Information
File Location |
wp-mail.php
View on GitHub
|
Hook Type | Action |
Line Number | 29 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into wp-mail.php
add_action('wp-mail.php', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-mail.php:29
- How this hook is used in WordPress core
<?php
24 /**
25 * Fires to allow a plugin to do a complete takeover of Post by Email.
26 *
27 * @since 2.9.0
28 */
29 do_action( 'wp-mail.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
30
31 /** Get the POP3 class with which to access the mailbox. */
32 require_once ABSPATH . WPINC . '/class-pop3.php';
33
34 /** Only check at this interval for new messages. */
PHP Documentation
<?php
/**
* Fires to allow a plugin to do a complete takeover of Post by Email.
*
* @since 2.9.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-mail.php
Related Hooks
Related hooks will be displayed here in future updates.