Yoast\WP\SEO\Introductions\Infrastructure

Introductions_Seen_Repository::set_all_introductions │ public │ Yoast 1.0

Sets the introductions.

Метод класса: Introductions_Seen_Repository{}

Хуков нет.

Возвращает

bool. True on successful update, false on failure or if the value passed to the function is the same as the one that is already in the database.

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

$Introductions_Seen_Repository = new Introductions_Seen_Repository();
$Introductions_Seen_Repository->set_all_introductions( $user_id, $introductions ): bool;
$user_id(int) (обязательный)
The user ID.
$introductions(массив) (обязательный)
The introductions.

Код Introductions_Seen_Repository::set_all_introductions() Yoast 28.7

public function set_all_introductions( $user_id, array $introductions ): bool {
	return $this->user_helper->update_meta( $user_id, self::USER_META_KEY, $introductions ) !== false;
}