__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
jQuery( function ( $ ) {
	/**
	 * Function to check if the attribute and variation fields are empty.
	 */
	jQuery.is_attribute_or_variation_empty = function (
		attributes_and_variations_data
	) {
		var has_empty_fields = false;
		attributes_and_variations_data.each( function () {
			var $this = $( this );
			// Check if the field is checkbox or a search field.
			if (
				$this.hasClass( 'checkbox' ) ||
				$this.filter( '[class*=search__field]' ).length
			) {
				return;
			}

			var is_empty = $this.is( 'select' )
				? $this.find( ':selected' ).length === 0
				: ! $this.val();
			if ( is_empty ) {
				has_empty_fields = true;
			}
		} );
		return has_empty_fields;
	};

	/**
	 * Function to maybe disable the save button.
	 */
	jQuery.maybe_disable_save_button = function () {
		var $tab;
		var $save_button;
		if (
			$( '.woocommerce_variation_new_attribute_data' ).is( ':visible' )
		) {
			$tab = $( '.woocommerce_variation_new_attribute_data' );
			$save_button = $( 'button.create-variations' );
		} else {
			var $tab = $( '.product_attributes' );
			var $save_button = $( 'button.save_attributes' );
		}

		var attributes_and_variations_data = $tab.find(
			'input, select, textarea'
		);
		if (
			jQuery.is_attribute_or_variation_empty(
				attributes_and_variations_data
			)
		) {
			if ( ! $save_button.hasClass( 'disabled' ) ) {
				$save_button.addClass( 'disabled' );
				$save_button.attr( 'aria-disabled', true );
			}
		} else {
			$save_button.removeClass( 'disabled' );
			$save_button.removeAttr( 'aria-disabled' );
		}
	};

	// Run tipTip
	function runTipTip() {
		// Remove any lingering tooltips
		$( '#tiptip_holder' ).removeAttr( 'style' );
		$( '#tiptip_arrow' ).removeAttr( 'style' );
		$( '.tips' ).tipTip( {
			attribute: 'data-tip',
			fadeIn: 50,
			fadeOut: 50,
			delay: 200,
			keepAlive: true,
		} );
	}

	runTipTip();

	$( '.save_attributes' ).tipTip( {
		content: function () {
			return $( '.save_attributes' ).hasClass( 'disabled' )
				? woocommerce_admin_meta_boxes.i18n_save_attribute_variation_tip
				: '';
		},
		fadeIn: 50,
		fadeOut: 50,
		delay: 200,
		keepAlive: true,
	} );

	$( '.create-variations' ).tipTip( {
		content: function () {
			return $( '.create-variations' ).hasClass( 'disabled' )
				? woocommerce_admin_meta_boxes.i18n_save_attribute_variation_tip
				: '';
		},
		fadeIn: 50,
		fadeOut: 50,
		delay: 200,
		keepAlive: true,
	} );

	$( '.wc-metaboxes-wrapper' ).on( 'click', '.wc-metabox > h3', function () {
		var metabox = $( this ).parent( '.wc-metabox' );

		if ( metabox.hasClass( 'closed' ) ) {
			metabox.removeClass( 'closed' );
		} else {
			metabox.addClass( 'closed' );
		}

		if ( metabox.hasClass( 'open' ) ) {
			metabox.removeClass( 'open' );
		} else {
			metabox.addClass( 'open' );
		}
	} );

	// Tabbed Panels
	$( document.body )
		.on( 'wc-init-tabbed-panels', function () {
			$( 'ul.wc-tabs' ).show();
			$( 'ul.wc-tabs a' ).on( 'click', function ( e ) {
				e.preventDefault();
				var panel_wrap = $( this ).closest( 'div.panel-wrap' );
				$( 'ul.wc-tabs li', panel_wrap ).removeClass( 'active' );
				$( this ).parent().addClass( 'active' );
				$( 'div.panel', panel_wrap ).hide();
				$( $( this ).attr( 'href' ) ).show( 0, function () {
					$( this ).trigger( 'woocommerce_tab_shown' );
				} );
			} );
			$( 'div.panel-wrap' ).each( function () {
				$( this )
					.find( 'ul.wc-tabs li' )
					.eq( 0 )
					.find( 'a' )
					.trigger( 'click' );
			} );
		} )
		.trigger( 'wc-init-tabbed-panels' );

	// Date Picker
	$( document.body )
		.on( 'wc-init-datepickers', function () {
			$( '.date-picker-field, .date-picker' ).datepicker( {
				dateFormat: 'yy-mm-dd',
				numberOfMonths: 1,
				showButtonPanel: true,
			} );
		} )
		.trigger( 'wc-init-datepickers' );

	// Meta-Boxes - Open/close
	$( '.wc-metaboxes-wrapper' )
		.on( 'click', '.wc-metabox h3', function ( event ) {
			// If the user clicks on some form input inside the h3, like a select list (for variations), the box should not be toggled
			if ( $( event.target ).filter( ':input, option, .sort' ).length ) {
				return;
			}

			$( this ).next( '.wc-metabox-content' ).stop().slideToggle();
		} )
		.on( 'click', '.expand_all', function () {
			$( this )
				.closest( '.wc-metaboxes-wrapper' )
				.find( '.wc-metabox > .wc-metabox-content' )
				.show();
			return false;
		} )
		.on( 'click', '.close_all', function () {
			$( this )
				.closest( '.wc-metaboxes-wrapper' )
				.find( '.wc-metabox > .wc-metabox-content' )
				.hide();
			return false;
		} );
	$( '.wc-metabox.closed' ).each( function () {
		$( this ).find( '.wc-metabox-content' ).hide();
	} );

	$( '#product_attributes' ).on(
		'change',
		'select.attribute_values',
		jQuery.maybe_disable_save_button
	);
	$( '#product_attributes, #variable_product_options' ).on(
		'keyup',
		'input, textarea',
		jQuery.maybe_disable_save_button
	);

	// Maybe disable save buttons when editing products.
	jQuery.maybe_disable_save_button();
} );

Filemanager

Name Type Size Permission Actions
api-keys.js File 3.89 KB 0664
api-keys.min.js File 2.23 KB 0664
backbone-modal.js File 4.35 KB 0664
backbone-modal.min.js File 2.77 KB 0664
marketplace-suggestions.js File 16.84 KB 0664
marketplace-suggestions.min.js File 6.66 KB 0664
meta-boxes-coupon.js File 2.99 KB 0664
meta-boxes-coupon.min.js File 1.61 KB 0664
meta-boxes-order.js File 54.3 KB 0664
meta-boxes-order.min.js File 32.97 KB 0664
meta-boxes-product-variation.js File 42.26 KB 0664
meta-boxes-product-variation.min.js File 22.55 KB 0664
meta-boxes-product.js File 34.25 KB 0664
meta-boxes-product.min.js File 18.04 KB 0664
meta-boxes.js File 4.88 KB 0664
meta-boxes.min.js File 2.97 KB 0664
network-orders.js File 2.34 KB 0664
network-orders.min.js File 1.25 KB 0664
order-attribution-admin.js File 1.16 KB 0664
order-attribution-admin.min.js File 730 B 0664
product-editor.js File 696 B 0664
product-editor.min.js File 298 B 0664
product-ordering.js File 2.49 KB 0664
product-ordering.min.js File 1.61 KB 0664
quick-edit.js File 7.06 KB 0664
quick-edit.min.js File 4.58 KB 0664
reports.js File 5.39 KB 0664
reports.min.js File 2.7 KB 0664
settings-views-html-settings-tax.js File 12.04 KB 0664
settings-views-html-settings-tax.min.js File 6.08 KB 0664
settings.js File 11.95 KB 0664
settings.min.js File 6.25 KB 0664
system-status.js File 5.29 KB 0664
system-status.min.js File 3.06 KB 0664
term-ordering.js File 4.57 KB 0664
term-ordering.min.js File 2.47 KB 0664
users.js File 3.78 KB 0664
users.min.js File 1.87 KB 0664
wc-brands-enhanced-select.js File 4.06 KB 0664
wc-brands-enhanced-select.min.js File 1.59 KB 0664
wc-clipboard.js File 869 B 0664
wc-clipboard.min.js File 336 B 0664
wc-customer-stock-notifications.js File 1.61 KB 0664
wc-customer-stock-notifications.min.js File 1.13 KB 0664
wc-enhanced-select.js File 13.58 KB 0664
wc-enhanced-select.min.js File 7.71 KB 0664
wc-orders.js File 1.98 KB 0664
wc-orders.min.js File 1.17 KB 0664
wc-product-export.js File 3.79 KB 0664
wc-product-export.min.js File 2.09 KB 0664
wc-product-import.js File 2.92 KB 0664
wc-product-import.min.js File 1.7 KB 0664
wc-setup.js File 10.05 KB 0664
wc-setup.min.js File 6.35 KB 0664
wc-shipping-classes.js File 6.57 KB 0664
wc-shipping-classes.min.js File 3.57 KB 0664
wc-shipping-zone-methods.js File 35.06 KB 0664
wc-shipping-zone-methods.min.js File 17.07 KB 0664
wc-shipping-zones.js File 9.23 KB 0664
wc-shipping-zones.min.js File 4.85 KB 0664
wc-status-widget-async.js File 1.28 KB 0664
wc-status-widget-async.min.js File 519 B 0664
wc-status-widget.js File 1.78 KB 0664
wc-status-widget.min.js File 1.05 KB 0664
woocommerce_admin.js File 22.38 KB 0664
woocommerce_admin.min.js File 11.98 KB 0664
Filemanager