wp_prepare_revisions_for_js


wp_prepare_revisions_for_js ( $post, $selected_revision_id, $from = null )

Parameters:
  • (object|int) $post The post object. Also accepts a post ID.
  • (int) $selected_revision_id The selected revision ID.
  • (int) $from Optional. The revision ID to compare from.
Returns:
  • (array) An associative array of revision data and related settings.
Defined at:

Description

Prepare revisions for JavaScript.

Related Functions

wp_prepare_themes_for_js, _wp_upgrade_revisions_of_post, wp_prepare_attachment_for_js, wp_revisions_to_keep, wp_ajax_get_revision_diffs

Top Google Results

User discussions

wpseek mobile