LLMS_Dot_Com_API::__construct( stirng $resource, array $data, string $method = null, bool $is_rest = true )
Construct an API call, parameters are passed to private call()
function
Parameters Parameters
- $resource
-
(stirng) (Required) url endpoint or resource to make a request to
- $data
-
(array) (Required) array of data to pass in the body of the request
- $method
-
(string) (Optional) method of request (POST, GET, DELETE, PUT, etc...)
Default value: null
- $is_rest
-
(bool) (Optional) if true adds wp-json rest to request url, otherwise requests to site base
Default value: true
Return Return
(void)
Source Source
File: includes/class.llms.dot.com.api.php
45 46 47 48 49 50 | public function __construct( $resource , $data , $method = null, $is_rest = true ) { $this ->is_rest = $is_rest ; parent::__construct( $resource , $data , $method ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.22.0 | Introduced. |