SimplePie::set_useragent()publicWP 1.0

Set the user agent string

Method of the class: SimplePie{}

No Hooks.

Return

null. Nothing.

Usage

$SimplePie = new SimplePie();
$SimplePie->set_useragent( $ua );
$ua(string)
New user agent string.
Default: SIMPLEPIE_USERAGENT

SimplePie::set_useragent() code WP 6.1.1

public function set_useragent($ua = SIMPLEPIE_USERAGENT)
{
	$this->useragent = (string) $ua;
}