[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
WP_oEmbed_Controller class, used to provide an oEmbed endpoint.
File Size: | 245 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
register_routes() X-Ref |
Register the oEmbed REST API route. since: 4.4.0 |
get_item( $request ) X-Ref |
Callback for the embed API endpoint. Returns the JSON object for the post. return: array|WP_Error oEmbed response data or WP_Error on failure. param: WP_REST_Request $request Full data about the request. since: 4.4.0 |
get_proxy_item_permissions_check() X-Ref |
Checks if current user can make a proxy oEmbed request. return: true|WP_Error True if the request has read access, WP_Error object otherwise. since: 4.8.0 |
get_proxy_item( $request ) X-Ref |
Callback for the proxy API endpoint. Returns the JSON object for the proxied item. return: object|WP_Error oEmbed response data or WP_Error on failure. param: WP_REST_Request $request Full data about the request. since: 4.8.0 |
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |