| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
REST API: WP_REST_Revision_Meta_Fields class
| File Size: | 63 lines (2 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
WP_REST_Revision_Meta_Fields:: (2 methods):
get_value()
get_registered_fields()
Class: WP_REST_Revision_Meta_Fields - X-Ref
Core class used to read the meta values of post revisions via the REST API.| get_value( $object_id, $request ) X-Ref |
| Retrieves the meta field values for a revision. When an author autosaves their own draft, the autosaves controller updates the post itself and returns it instead of an autosave. That post stores all of its meta, so its values are read as regular post meta. param: int $object_id Object ID to fetch meta for. param: WP_REST_Request $request Full details about the request. return: array Array containing the meta values keyed by name. |
| get_registered_fields() X-Ref |
| Retrieves the registered meta fields that are revisioned for the parent post type. return: array Registered fields, limited to the revisioned meta keys. |
| Generated : Tue Oct 27 08:20:35 2026 | Cross-referenced by PHPXref |