Skip to content

Instantly share code, notes, and snippets.

@lephleg
Created March 15, 2021 12:42
Show Gist options
  • Save lephleg/f59a5f9ad32e37c96c2ad4a3ef163ee4 to your computer and use it in GitHub Desktop.
Save lephleg/f59a5f9ad32e37c96c2ad4a3ef163ee4 to your computer and use it in GitHub Desktop.
REST API "object" strings left untouched
✓ james@compu <WP>/src/wp-includes/rest-api $ ack '(the|this|by) (resource|object)'
fields/class-wp-rest-meta-fields.php:18: * Retrieves the object meta type.
fields/class-wp-rest-meta-fields.php:29: * Retrieves the object type for register_rest_field().
fields/class-wp-rest-meta-fields.php:379: * Retrieves the object's meta schema, conforming to JSON Schema.
endpoints/class-wp-rest-controller.php:36: * Registers the routes for the objects of the controller.
endpoints/class-wp-rest-controller.php:480: * @param string $object_type Optional. The object type.
endpoints/class-wp-rest-controller.php:481: * @return array Registered additional fields (if any), empty array if none or if the object type could
endpoints/class-wp-rest-controller.php:504: * Retrieves the object type this controller is responsible for managing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment