Yoast\WP\SEO\Values\Robots

Directive::add_path()publicYoast 1.0

Adds a path to the directive path list.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$Directive = new Directive();
$Directive->add_path( $path );
$path(строка) (обязательный)
A path to add in the path list.

Код Directive::add_path() Yoast 22.4

public function add_path( $path ) {
	if ( ! \in_array( $path, $this->paths, true ) ) {
		$this->paths[] = $path;
	}
}