_wp_preview_meta_filter


_wp_preview_meta_filter ( $value, $object_id, $meta_key, $single )

Parameters:
  • (mixed) value Meta value to filter.
  • (int) object_id Object ID.
  • (string) meta_key Meta key to filter a value for.
  • (bool) single Whether to return a single value. Default false.
Returns:
  • (mixed) Original meta value if the meta key isn't revisioned, the object doesn't exist, the post type is a revision or the post ID doesn't match the object ID. Otherwise, the revisioned meta value is returned for the preview.
Defined at:

Description

Filters preview post meta retrieval to get values from the autosave.Filters revisioned meta keys only.

Related Functions

_wp_preview_terms_filter, _wp_preview_post_thumbnail_filter, _preview_theme_template_filter, preview_theme_ob_filter, _preview_theme_stylesheet_filter

Top Google Results

User discussions

wpseek mobile