private_to_published

private_to_published

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-5.3.2

do_action('private_to_published') is found 1 times:

  • /wp-includes/post.php line 6741
    		 * @deprecated 2.3.0 Use 'private_to_publish' instead.
    		 *
    		 * @param int $post_id Post ID.
    		 */
    		do_action( 'private_to_published', $post->ID );
    	}
    
    	// 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' );