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

private_to_published WordPress Hook

The private_to_published hook is a WordPress hook that fires when a post is changed from private to public.

do_action_deprecated( 'private_to_published', int $post_id ) #

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


Parameters

$post_id

(int)Post ID.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.3.0Use 'private_to_publish' instead.
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More