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


Top ↑

Return Return

(string)


Top ↑

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() );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.22.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.