_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.
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: - Introduced in WordPress: 6.4.0
- Deprecated in WordPress: —
Description
Filters preview post meta retrieval to get values from the autosave.Filters revisioned meta keys only.