do_action_deprecated( ‘private_to_published’, int $post_id )

In this article

This hook has been deprecated. Use {@see ‘private_to_publish’} instead.

Fires when a post’s status is transitioned from private to published.

Parameters

$post_idint
Post ID.

Source

do_action_deprecated( 'private_to_published', array( $post->ID ), '2.3.0', 'private_to_publish' );

Changelog

VersionDescription
2.3.0Use 'private_to_publish' instead.
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.