Yoast\WP\SEO\Values\Robots
User_Agent::add_disallow_directive
Adds a path to the directive object.
Метод класса: User_Agent{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$User_Agent = new User_Agent(); $User_Agent->add_disallow_directive( $path );
- $path(строка) (обязательный)
- The path to add to the disallow directive.
Код User_Agent::add_disallow_directive() User Agent::add disallow directive Yoast 28.6
public function add_disallow_directive( $path ) {
$this->disallow_directive->add_path( $path );
}