Yoast\WP\SEO\Abilities\Infrastructure\Global_Setting_Targets

Global_Setting_Target_Repository::get_names │ public │ Yoast 1.0

Returns the names of all targets, as agents pass them to the abilities.

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

Хуков нет.

Возвращает

array<string>. The names.

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

$Global_Setting_Target_Repository = new Global_Setting_Target_Repository();
$Global_Setting_Target_Repository->get_names(): array;

Код Global_Setting_Target_Repository::get_names() Yoast 28.9

public function get_names(): array {
	return \array_merge( \array_keys( $this->single_targets ), [ Post_Type_Archive_Target::NAME ] );
}