Yoast\WP\SEO\Abilities\User_Interface\Abilities

Update_Archive_And_Special_Page_SEO_Settings_Ability::execute │ public │ Yoast 1.0

Updates the global settings of a target and returns its new state.

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

Хуков нет.

Возвращает

array<string, mixed>|WP_Error. The new global settings of the target, or an error.

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

$Update_Archive_And_Special_Page_SEO_Settings_Ability = new Update_Archive_And_Special_Page_SEO_Settings_Ability();
$Update_Archive_And_Special_Page_SEO_Settings_Ability->execute( $input );
$input(array<string, mixed>) (обязательный)
The target, the post type for the archive of a content type, and the fields to change.

Код Update_Archive_And_Special_Page_SEO_Settings_Ability::execute() Yoast 28.9

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