Automattic\WooCommerce\Internal\Admin

Marketplace::enqueue_scripts()publicWC 1.0

Enqueue update script.

Method of the class: Marketplace{}

No Hooks.

Return

null. Nothing (null).

Usage

$Marketplace = new Marketplace();
$Marketplace->enqueue_scripts( $hook_suffix );
$hook_suffix(string) (required)
The current admin page.

Marketplace::enqueue_scripts() code WC 9.5.1

public function enqueue_scripts( $hook_suffix ) {
	// phpcs:disable WordPress.Security.NonceVerification.Recommended
	if ( 'woocommerce_page_wc-admin' !== $hook_suffix ) {
		return;
	}

	if ( ! isset( $_GET['path'] ) || '/extensions' !== $_GET['path'] ) {
		return;
	}

	// Enqueue WordPress updates script to enable plugin and theme installs and updates.
	wp_enqueue_script( 'updates' );
	// phpcs:enable WordPress.Security.NonceVerification.Recommended
}