LLMS_Dot_Com_API::set_user_agent( string $user_agent, string $resource, string $method )
Set the request User Agent Can be overridden by extending classes when necessary
Parameters Parameters
- $user_agent
-
(string) (Required) default user agent (LifterLMS {$version})
- $resource
-
(string) (Required) requested resource
- $method
-
(string) (Required) request method
Return Return
(string)
Source Source
File: includes/class.llms.dot.com.api.php
protected function set_user_agent( $user_agent, $resource, $method ) { return sprintf( 'LifterLMS/%1$s (%2$s)', LLMS_VERSION, get_site_url() ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.22.0 | Introduced. |