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
    6737
    6738
    6739
    6740
    6741
    6742
    6743
    6744
    6745
    6746
    6747
         * @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' );