Yoast\WP\SEO\Abilities\User_Interface\Abilities
Update_Archive_And_Special_Page_SEO_Settings_Ability::execute
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() Update Archive And Special Page SEO Settings Ability::execute Yoast 28.9
public function execute( array $input ) {
return $this->updater->update( $input );
}