private_to_published action-hook . WP 1.5.0
Deprecated in from version 2.3.0. It is no longer supported and can be removed in future releases. See private_to_publish
.
Deprecated: 2.3.0 Use {@see 'private_to_publish'} instead.
Fires when a post's status is transitioned from private to published.
Usage
add_action( 'private_to_published', 'action_function_name_9765', 10, 3 ); function action_function_name_9765( $post_id, $string, $string ){ // action... }
- $post_id(int)
- Post ID.
- $string
- -
- $string
- -
Changelog
Since 1.5.0 | Introduced. | |
Deprecated Since 2.3.0 | Use {@see 'private_to_publish'} instead. |
Where the hook is called
private_to_published
wp-includes/post.php 7115
do_action_deprecated( 'private_to_published', array( $post->ID ), '2.3.0', 'private_to_publish' );