Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Abstract_API_Handler::call( string $resource, array $data, string $method = null )
Execute an API request.
Description Description
Parameters Parameters
- $resource
-
(Required) url endpoint or resource to make a request to.
- $data
-
(Required) array of data to pass in the body of the request.
- $method
-
(Optional) method of request (POST, GET, DELETE, PUT, etc...).
Default value: null
Return Return
(null)
Source Source
File: includes/abstracts/llms.abstract.api.handler.php
Changelog Changelog
Version | Description |
---|---|
4.21.3 | Use wp_json_encode() in favor of json_encode() . Updated the API connection error message. |
3.30.1 | self::set_request_body() may respond with null in order to send a request with no body |
3.11.2 | Introduced. |