src/WordpressClient.php
function setUserAgent($userAgent)
    {
        if ($userAgent) {
            $this->userAgent = $userAgent;
        } else {
            $this->userAgent = $this->getDefaultUserAgent();
        }
    }
function setUserAgent($userAgent)
    {
        if ($userAgent) {
            $this->userAgent = $userAgent;
        } else {
            $this->userAgent = $this->getDefaultUserAgent();
        }
    }
function setUserAgent ( $ userAgent ) { if ( $ userAgent ) { $ this -> userAgent = $ userAgent ; } else { $ this -> userAgent = $ this -> getDefaultUserAgent ( ) ; } }
Set the user agent for next requests

@param string $userAgent custom user agent, give a falsy value to use library user agent

@since 2.4.0
Set the user agent for next requests