wp_prepare_revision_for_js

wp_prepare_revision_for_js

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_prepare_revision_for_js') is found 1 times:

  • /wp-admin/includes/revision.php line 282
    		 * }
    		 * @param WP_Post $revision       The revision's WP_Post object.
    		 * @param WP_Post $post           The revision's parent WP_Post object.
    		 */
    		$revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revisions_data, $revision, $post );
    	}
    
    	/*
    	 * If we only have one revision, the initial revision is missing. This happens
    	 * when we have an autosave and the user has clicked 'View the Autosave'.
    	 */
    

See this hook used in plugins: