publish_phone
Fires after a post submitted by email is published.
Usage
add_action( 'publish_phone', 'wp_kama_publish_phone_action' );
/**
* Function for `publish_phone` action-hook.
*
* @param int $post_ID The post ID.
*
* @return void
*/
function wp_kama_publish_phone_action( $post_ID ){
// action...
}
- $post_ID(int)
- The post ID.
Changelog
| Since 1.2.0 | Introduced. |
Where the hook is called
In file: /wp-mail.php
wp-mail.php 254
do_action( 'publish_phone', $post_ID );