Yoast\WP\SEO\Abilities\User_Interface\Abilities

Update_Term_SEO_Data_Ability::execute │ public │ Yoast 1.0

Executes the ability: updates the term 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_Term_SEO_Data_Ability{}

Хуков нет.

Возвращает

array<string, int|string|bool|null>|WP_Error. The updated SEO data, or an error.

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

$Update_Term_SEO_Data_Ability = new Update_Term_SEO_Data_Ability();
$Update_Term_SEO_Data_Ability->execute( $input );
$input(array<string, int|строка|true|false|null>) (обязательный)
The input identifying the term plus the SEO fields to change.

Код Update_Term_SEO_Data_Ability::execute() Yoast 28.9

public function execute( array $input ) {
	return $this->ai_generate_upsell->add_hint( $this->term_seo_data_updater->update_term_seo_data( $input ), $input );
}