Warning: 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.

Description Description

Parameters Parameters


(int) Post ID.

Top ↑

Source Source

File: wp-includes/post.php

View on Trac

Top ↑

Changelog Changelog

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

Top ↑

User Contributed Notes User Contributed Notes

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