| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 155 lines (5 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| apiRequest( options ) X-Ref |
| Makes an API request. param: {Object} options The options for the API request. param: {string} [options.url] The full URL for the request. param: {string} [options.path] The API path (e.g., 'wp/v2/posts'). Used if url is not provided. param: {string} [options.namespace] The API namespace (e.g., 'wp/v2'). Used with endpoint to build path. param: {string} [options.endpoint] The API endpoint (e.g., 'posts'). Used with namespace to build path. param: {string} [options.method] The HTTP method (GET, POST, PUT, DELETE, etc.). param: {Object} [options.data] The request data to send. param: {string} [options.data._wpnonce] Nonce for security. param: {Object} [options.headers] Custom headers to include in the request. return: {JQueryXHR} The jQuery XHR object. |
| Generated : Fri Sep 11 08:20:31 2026 | Cross-referenced by PHPXref |