wp_restore_post_revision

wp_restore_post_revision

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('wp_restore_post_revision') is found 1 times:

  • /wp-includes/revision.php line 511
    	 *
    	 * @param int $post_id     Post ID.
    	 * @param int $revision_id Post revision ID.
    	 */
    	do_action( 'wp_restore_post_revision', $post_id, $revision['ID'] );
    
    	return $post_id;
    }
    
    /**
     * Restore the revisioned meta values for a post.
    

See this hook used in plugins: