On this page
do_action_deprecated( 'private_to_published', int $post_id )
This hook has been deprecated. Use ‘private_to_publish’ instead.
Fires when a post’s status is transitioned from private to published.
Parameters
$post_idint-
Post ID.
Source
File: wp-includes/post.php. View all references
do_action_deprecated( 'private_to_published', array( $post->ID ), '2.3.0', 'private_to_publish' );
Related
Used By
| Used By | Description |
|---|---|
| _transition_post_status() wp-includes/post.php | Hook for managing future post transitions to published. |
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Use 'private_to_publish' instead. |
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/private_to_publish