WC_Admin_Pointers::create_variable_product_tutorial()publicWC 1.0

Pointers for creating a variable product.

Method of the class: WC_Admin_Pointers{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Admin_Pointers = new WC_Admin_Pointers();
$WC_Admin_Pointers->create_variable_product_tutorial();

WC_Admin_Pointers::create_variable_product_tutorial() code WC 9.7.1

public function create_variable_product_tutorial() {
	if ( ! current_user_can( 'manage_options' ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
		return;
	}

	WCAdminAssets::register_script( 'wp-admin-scripts', 'variable-product-tour', true );
}