WordPress at a glance
function is not described

SimplePie::set_useragent() public WP 1.0

Set the user agent string

{} It's a method of the class: SimplePie{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of SimplePie::set_useragent() WP 5.7.2

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