WC_Admin_Pointers::create_wc_addons_tutorial()publicWC 1.0

Pointers for accessing In-App Marketplace.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WC_Admin_Pointers::create_wc_addons_tutorial() WC 7.3.0

public function create_wc_addons_tutorial() {
	if ( ! isset( $_GET['tutorial'] ) || ! current_user_can( 'manage_options' ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
		return;
	}

	if ( wp_is_mobile() ) {
		return; // Permit In-App Marketplace Tour on desktops only.
	}

	WCAdminAssets::register_script( 'wp-admin-scripts', 'wc-addons-tour', true );
}