Yoast\WP\SEO\Abilities\User_Interface\Abilities

Update_Site_Representation_Ability::execute │ public │ Yoast 1.0

Updates the site representation settings and returns their new state.

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

Хуков нет.

Возвращает

array<string, mixed>. The new site representation settings, plus a warning when some could not be changed.

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

$Update_Site_Representation_Ability = new Update_Site_Representation_Ability();
$Update_Site_Representation_Ability->execute( $input ): array;
$input(array<string, mixed>) (обязательный)
The site representation settings to change, keyed by option name.

Код Update_Site_Representation_Ability::execute() Yoast 28.8

public function execute( array $input ): array {
	return $this->site_representation_updater->update( $input );
}