Yoast\WP\SEO\Abilities\User_Interface\Abilities
Update_Author_Schema_Ability::execute
Updates the author schema settings of the user and returns their new state.
Метод класса: Update_Author_Schema_Ability{}
Хуков нет.
Возвращает
array<string, mixed>|WP_Error. The new author schema settings, plus a warning when some could not be changed, or an error when the user does not exist.
Использование
$Update_Author_Schema_Ability = new Update_Author_Schema_Ability(); $Update_Author_Schema_Ability->execute( $input );
- $input(array<string, mixed>) (обязательный)
- The ID of the user, plus the author schema settings to change, keyed by field name.
Код Update_Author_Schema_Ability::execute() Update Author Schema Ability::execute Yoast 28.9
public function execute( array $input ) {
return $this->author_schema_updater->update( (int) $input['user_id'], $input );
}