WC_Admin_Pointers::create_variable_product_tutorial()publicWC 1.0

Pointers for creating a variable product.

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

Хуков нет.

Возвращает

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

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

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

Код WC_Admin_Pointers::create_variable_product_tutorial() WC 9.4.2

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 );
}