Yoast\WP\SEO\Abilities\Domain
Author_Schema_Field_Repository_Interface::save
Sanitizes and saves a setting of a user.
Метод класса: Author_Schema_Field_Repository_Interface{}
Хуков нет.
Возвращает
bool. Whether the value was saved as provided, so false as well when it got sanitized into something else.
Использование
$Author_Schema_Field_Repository_Interface = new Author_Schema_Field_Repository_Interface(); $Author_Schema_Field_Repository_Interface->save( $user_id, $field_name, $value ): bool;
- $user_id(int) (обязательный)
- The ID of the user.
- $field_name(строка) (обязательный)
- The name of the setting.
- $value(разное) (обязательный)
- The value to save.
Код Author_Schema_Field_Repository_Interface::save() Author Schema Field Repository Interface::save Yoast 28.9
public function save( int $user_id, string $field_name, $value ): bool;