Automattic\WooCommerce\Admin\Features
LaunchYourStore::register_launch_your_store_user_meta_fields()
Register user meta fields for Launch Your Store.
This should be removed in WC 9.4.
Method of the class: LaunchYourStore{}
No Hooks.
Return
null
. Nothing (null).
Usage
$LaunchYourStore = new LaunchYourStore(); $LaunchYourStore->register_launch_your_store_user_meta_fields();
LaunchYourStore::register_launch_your_store_user_meta_fields() LaunchYourStore::register launch your store user meta fields code 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, ) ); }