Automattic\WooCommerce\Admin\Features

LaunchYourStore::register_launch_your_store_user_meta_fields()publicWC 1.0

Register user meta fields for Launch Your Store.

This should be removed in WC 9.4.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$LaunchYourStore = new LaunchYourStore();
$LaunchYourStore->register_launch_your_store_user_meta_fields();

Код LaunchYourStore::register_launch_your_store_user_meta_fields() WC 9.7.1

public function register_launch_your_store_user_meta_fields() {
	if ( ! $this->is_manager_or_admin() ) {
		return;
	}

	register_meta(
		'user',
		'woocommerce_launch_your_store_tour_hidden',
		array(
			'type'         => 'string',
			'description'  => 'Indicate whether the user has dismissed the site visibility tour on the home screen.',
			'single'       => true,
			'show_in_rest' => true,
		)
	);

	register_meta(
		'user',
		'woocommerce_coming_soon_banner_dismissed',
		array(
			'type'         => 'string',
			'description'  => 'Indicate whether the user has dismissed the coming soon notice or not.',
			'single'       => true,
			'show_in_rest' => true,
		)
	);
}