Yoast\WP\SEO\Values\Robots

User_Agent::__construct()publicYoast 1.0

Constructor of the user agent value object.

Метод класса: User_Agent{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$User_Agent = new User_Agent();
$User_Agent->__construct( $user_agent );
$user_agent(строка) (обязательный)
The user agent identifier.

Код User_Agent::__construct() Yoast 19.11

public function __construct( $user_agent ) {
	$this->user_agent         = $user_agent;
	$this->allow_directive    = new Directive();
	$this->disallow_directive = new Directive();
}