publish_phone
Action HookDescription
Fires after a post submitted by email is published.Hook Information
File Location |
wp-mail.php
View on GitHub
|
Hook Type | Action |
Line Number | 254 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$post_ID
|
The post ID. |
Usage Examples
Basic Usage
<?php
// Hook into publish_phone
add_action('publish_phone', 'my_custom_function', 10, 1);
function my_custom_function($post_ID) {
// Your custom code here
}
Source Code Context
wp-mail.php:254
- How this hook is used in WordPress core
<?php
249 *
250 * @since 1.2.0
251 *
252 * @param int $post_ID The post ID.
253 */
254 do_action( 'publish_phone', $post_ID );
255
256 echo "\n<p><strong>" . __( 'Author:' ) . '</strong> ' . esc_html( $post_author ) . '</p>';
257 echo "\n<p><strong>" . __( 'Posted title:' ) . '</strong> ' . esc_html( $post_title ) . '</p>';
258
259 if ( ! $pop3->delete( $i ) ) {
PHP Documentation
<?php
/**
* Fires after a post submitted by email is published.
*
* @since 1.2.0
*
* @param int $post_ID The post ID.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-mail.php
Related Hooks
Related hooks will be displayed here in future updates.