This hook has been deprecated. Use ‘private_to_publish’ instead.

do_action( 'private_to_published', int $post_id )

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


Parameters

$post_id

Post ID.


Source

File: wp-includes/post.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.3.0 Use 'private_to_publish' instead.
WP-1.5.0 Introduced. This hook has been deprecated. Use 'private_to_publish' instead.