wp_prepare_revisions_for_js


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

Parameters:
  • (WP_Post|int) post The post object or 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_get_post_revisions_url, wp_revisions_to_keep

Top Google Results

User discussions

wpseek mobile