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_id

(int) Post ID.

Source

File: wp-includes/post.php

View on Trac

Changelog

Version Description
2.3.0 Use 'private_to_publish' instead.
1.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/private_to_published