Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
REST API "object" strings
✓ james@compu <WP>/src/wp-includes/rest-api $ ack '(the|this|by) (resource|object)'
fields/class-wp-rest-term-meta-fields.php:41: * Retrieves the object meta type.
fields/class-wp-rest-comment-meta-fields.php:20: * Retrieves the object type for comment meta.
fields/class-wp-rest-post-meta-fields.php:41: * Retrieves the object meta type.
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-post-types-controller.php:31: * Registers the routes for the objects of the controller.
endpoints/class-wp-rest-revisions-controller.php:76: 'description' => __( 'The ID for the parent of the object.' ),
endpoints/class-wp-rest-revisions-controller.php:92: 'description' => __( 'The ID for the parent of the object.' ),
endpoints/class-wp-rest-revisions-controller.php:96: 'description' => __( 'Unique identifier for the object.' ),
endpoints/class-wp-rest-revisions-controller.php:474: 'description' => __( 'The ID for the author of the object.' ),
endpoints/class-wp-rest-revisions-controller.php:479: 'description' => __( "The date the object was published, in the site's timezone." ),
endpoints/class-wp-rest-revisions-controller.php:485: 'description' => __( 'The date the object was published, as GMT.' ),
endpoints/class-wp-rest-revisions-controller.php:491: 'description' => __( 'GUID for the object, as it exists in the database.' ),
endpoints/class-wp-rest-revisions-controller.php:496: 'description' => __( 'Unique identifier for the object.' ),
endpoints/class-wp-rest-revisions-controller.php:501: 'description' => __( "The date the object was last modified, in the site's timezone." ),
endpoints/class-wp-rest-revisions-controller.php:507: 'description' => __( 'The date the object was last modified, as GMT.' ),
endpoints/class-wp-rest-revisions-controller.php:513: 'description' => __( 'The ID for the parent of the object.' ),
endpoints/class-wp-rest-revisions-controller.php:518: 'description' => __( 'An alphanumeric identifier for the object unique to its type.' ),
fields/class-wp-rest-user-meta-fields.php:20: * Retrieves the object meta type.
endpoints/class-wp-rest-users-controller.php:42: * Registers the routes for the objects of the controller.
endpoints/class-wp-rest-users-controller.php:1347: 'description' => __( 'Sort collection by object attribute.' ),
endpoints/class-wp-rest-comments-controller.php:42: * Registers the routes for the objects of the controller.
endpoints/class-wp-rest-comments-controller.php:68: 'description' => __( 'Unique identifier for the object.' ),
endpoints/class-wp-rest-comments-controller.php:1166: 'description' => __( 'Unique identifier for the object.' ),
endpoints/class-wp-rest-comments-controller.php:1177: 'description' => __( 'Email address for the object author.' ),
endpoints/class-wp-rest-comments-controller.php:1187: 'description' => __( 'IP address for the object author.' ),
endpoints/class-wp-rest-comments-controller.php:1193: 'description' => __( 'Display name for the object author.' ),
endpoints/class-wp-rest-comments-controller.php:1201: 'description' => __( 'URL for the object author.' ),
endpoints/class-wp-rest-comments-controller.php:1207: 'description' => __( 'User agent for the object author.' ),
endpoints/class-wp-rest-comments-controller.php:1215: 'description' => __( 'The content for the object.' ),
endpoints/class-wp-rest-comments-controller.php:1223: 'description' => __( 'Content for the object, as it exists in the database.' ),
endpoints/class-wp-rest-comments-controller.php:1228: 'description' => __( 'HTML content for the object, transformed for display.' ),
endpoints/class-wp-rest-comments-controller.php:1236: 'description' => __( "The date the object was published, in the site's timezone." ),
endpoints/class-wp-rest-comments-controller.php:1242: 'description' => __( 'The date the object was published, as GMT.' ),
endpoints/class-wp-rest-comments-controller.php:1248: 'description' => __( 'URL to the object.' ),
endpoints/class-wp-rest-comments-controller.php:1255: 'description' => __( 'The ID for the parent of the object.' ),
endpoints/class-wp-rest-comments-controller.php:1267: 'description' => __( 'State of the object.' ),
endpoints/class-wp-rest-comments-controller.php:1275: 'description' => __( 'Type of Comment for the object.' ),
endpoints/class-wp-rest-comments-controller.php:1298: 'description' => __( 'Avatar URLs for the object author.' ),
endpoints/class-wp-rest-comments-controller.php:1393: 'description' => __( 'Sort collection by object attribute.' ),
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.
endpoints/class-wp-rest-post-statuses-controller.php:31: * Registers the routes for the objects of the controller.
endpoints/class-wp-rest-settings-controller.php:31: * Registers the routes for the objects of the controller.
endpoints/class-wp-rest-attachments-controller.php:426: 'description' => __( 'Description for the object, as it exists in the database.' ),
endpoints/class-wp-rest-attachments-controller.php:431: 'description' => __( 'HTML description for the object, transformed for display.' ),
endpoints/class-wp-rest-posts-controller.php:55: * Registers the routes for the objects of the controller.
endpoints/class-wp-rest-posts-controller.php:93: 'description' => __( 'Unique identifier for the object.' ),
endpoints/class-wp-rest-posts-controller.php:1725: 'description' => __( "The date the object was published, in the site's timezone." ),
endpoints/class-wp-rest-posts-controller.php:1731: 'description' => __( 'The date the object was published, as GMT.' ),
endpoints/class-wp-rest-posts-controller.php:1737: 'description' => __( 'The globally unique identifier for the object.' ),
endpoints/class-wp-rest-posts-controller.php:1743: 'description' => __( 'GUID for the object, as it exists in the database.' ),
endpoints/class-wp-rest-posts-controller.php:1749: 'description' => __( 'GUID for the object, transformed for display.' ),
endpoints/class-wp-rest-posts-controller.php:1757: 'description' => __( 'Unique identifier for the object.' ),
endpoints/class-wp-rest-posts-controller.php:1763: 'description' => __( 'URL to the object.' ),
endpoints/class-wp-rest-posts-controller.php:1770: 'description' => __( "The date the object was last modified, in the site's timezone." ),
endpoints/class-wp-rest-posts-controller.php:1777: 'description' => __( 'The date the object was last modified, as GMT.' ),
endpoints/class-wp-rest-posts-controller.php:1784: 'description' => __( 'An alphanumeric identifier for the object unique to its type.' ),
endpoints/class-wp-rest-posts-controller.php:1792: 'description' => __( 'A named status for the object.' ),
endpoints/class-wp-rest-posts-controller.php:1798: 'description' => __( 'Type of Post for the object.' ),
endpoints/class-wp-rest-posts-controller.php:1815: 'description' => __( 'The ID for the parent of the object.' ),
endpoints/class-wp-rest-posts-controller.php:1875: 'description' => __( 'The title for the object.' ),
endpoints/class-wp-rest-posts-controller.php:1883: 'description' => __( 'Title for the object, as it exists in the database.' ),
endpoints/class-wp-rest-posts-controller.php:1888: 'description' => __( 'HTML title for the object, transformed for display.' ),
endpoints/class-wp-rest-posts-controller.php:1899: 'description' => __( 'The content for the object.' ),
endpoints/class-wp-rest-posts-controller.php:1907: 'description' => __( 'Content for the object, as it exists in the database.' ),
endpoints/class-wp-rest-posts-controller.php:1912: 'description' => __( 'HTML content for the object, transformed for display.' ),
endpoints/class-wp-rest-posts-controller.php:1929: 'description' => __( 'The ID for the author of the object.' ),
endpoints/class-wp-rest-posts-controller.php:1937: 'description' => __( 'The excerpt for the object.' ),
endpoints/class-wp-rest-posts-controller.php:1945: 'description' => __( 'Excerpt for the object, as it exists in the database.' ),
endpoints/class-wp-rest-posts-controller.php:1950: 'description' => __( 'HTML excerpt for the object, transformed for display.' ),
endpoints/class-wp-rest-posts-controller.php:1967: 'description' => __( 'The ID of the featured media for the object.' ),
endpoints/class-wp-rest-posts-controller.php:1975: 'description' => __( 'Whether or not comments are open on the object.' ),
endpoints/class-wp-rest-posts-controller.php:1981: 'description' => __( 'Whether or not the object can be pinged.' ),
endpoints/class-wp-rest-posts-controller.php:1990: 'description' => __( 'The order of the object in relation to other object of its type.' ),
endpoints/class-wp-rest-posts-controller.php:2001: 'description' => __( 'The format for the object.' ),
endpoints/class-wp-rest-posts-controller.php:2017: 'description' => __( 'Whether or not the object should be treated as sticky.' ),
endpoints/class-wp-rest-posts-controller.php:2024: 'description' => __( 'The theme file to use to display the object.' ),
endpoints/class-wp-rest-posts-controller.php:2035: 'description' => sprintf( __( 'The terms assigned to the object in the %s taxonomy.' ), $taxonomy->name ),
endpoints/class-wp-rest-posts-controller.php:2129: 'description' => __( 'Sort collection by object attribute.' ),
endpoints/class-wp-rest-taxonomies-controller.php:31: * Registers the routes for the objects of the controller.
endpoints/class-wp-rest-terms-controller.php:73: * Registers the routes for the objects of the controller.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.