SimplePie::set_useragent()
Set the user agent string
Method of the class: SimplePie{}
No Hooks.
Return
null
. Nothing (null).
Usage
$SimplePie = new SimplePie(); $SimplePie->set_useragent( $ua );
- $ua(string)
- New user agent string.
Default: SIMPLEPIE_USERAGENT
SimplePie::set_useragent() SimplePie::set useragent code WP 6.6.2
public function set_useragent($ua = SIMPLEPIE_USERAGENT) { $this->useragent = (string) $ua; }