wp_untrash_post_status

wp_untrash_post_status

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('wp_untrash_post_status') is found 1 times:

  • /wp-includes/post.php line 4026
    	 * @param string $new_status      The new status of the post being restored.
    	 * @param int    $post_id         The ID of the post being restored.
    	 * @param string $previous_status The status of the post at the point where it was trashed.
    	 */
    	$post_status = apply_filters( 'wp_untrash_post_status', $new_status, $post_id, $previous_status );
    
    	delete_post_meta( $post_id, '_wp_trash_meta_status' );
    	delete_post_meta( $post_id, '_wp_trash_meta_time' );
    
    	$post_updated = wp_update_post(
    		array(
    

See this hook used in plugins: