wp_restore_post_revision

wp_restore_post_revision

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-5.4.1

do_action('wp_restore_post_revision') is found 1 times:

  • /wp-includes/revision.php line 420
    	 *
    	 * @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;
    }
    
    /**
     * Deletes a revision.
    

See this hook used in plugins: