Yoast\WP\SEO\Abilities\User_Interface\Abilities
Update_Post_SEO_Data_Ability::execute
Executes the ability: updates the post SEO data and, on the free plugin, adds the AI Generate hint to the response when a field AI Generate can write was set.
Метод класса: Update_Post_SEO_Data_Ability{}
Хуков нет.
Возвращает
array<string, int|string|bool|null>|WP_Error. The updated SEO data, or an error.
Использование
$Update_Post_SEO_Data_Ability = new Update_Post_SEO_Data_Ability(); $Update_Post_SEO_Data_Ability->execute( $input );
- $input(array<string, int|строка|true|false|null>) (обязательный)
- The input identifying the post plus the SEO fields to change.
Код Update_Post_SEO_Data_Ability::execute() Update Post SEO Data Ability::execute Yoast 28.9
public function execute( array $input ) {
return $this->ai_generate_upsell->add_hint( $this->post_seo_data_updater->update_post_seo_data( $input ), $input );
}