wppaste
WordPress

do_action_deprecated( 'private_to_published', int $post_id )

Since
1.5.0
Fires when a post's status is transitioned from private to published.

Compatibility

Deprecated in WordPress 2.3.0. Use {@see 'private_to_publish'} instead.

WordPress
since 1.5.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$post_idint
Post ID.

Where this hook fires · 1

  • wp-includes/post.php:7949_transition_post_status()

Source code

		 *		 * @since 1.5.0		 * @deprecated 2.3.0 Use {@see 'private_to_publish'} instead.		 *		 * @param int $post_id Post ID.		 */		do_action_deprecated( 'private_to_published', array( $post->ID ), '2.3.0', 'private_to_publish' );	} 	// If published posts changed clear the lastpostmodified cache.	if ( 'publish' === $new_status || 'publish' === $old_status ) {		foreach ( array( 'server', 'gmt', 'blog' ) as $timezone ) {			wp_cache_delete( "lastpostmodified:$timezone", 'timeinfo' );

Changelog

Introduced in 1.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

2.3.0
Deprecated. Use 'private_to_publish' instead.from the docblock
1.5.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.