WordPress at Your Fingertips
function is not described

WC_Admin_Setup_Wizard_Tracking::dequeue_non_allowed_scripts() public WC 1.0

Deprecated from version 4.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Dequeue unwanted scripts from OBW footer.

{} It's a method of the class: WC_Admin_Setup_Wizard_Tracking{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Admin_Setup_Wizard_Tracking = new WC_Admin_Setup_Wizard_Tracking();
$WC_Admin_Setup_Wizard_Tracking->dequeue_non_allowed_scripts();

Changelog

Deprecated 4.6.0

Code of WC_Admin_Setup_Wizard_Tracking::dequeue_non_allowed_scripts() WC 5.8.0

public function dequeue_non_allowed_scripts() {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', __( 'Onboarding is maintained in WooCommerce Admin.', 'woocommerce' ) );
	global $wp_scripts;
	$allowed = array( 'woo-tracks' );

	foreach ( $wp_scripts->queue as $script ) {
		if ( in_array( $script, $allowed, true ) ) {
			continue;
		}
		wp_dequeue_script( $script );
	}
}