Server IP : 172.67.158.161 / Your IP : 18.221.12.52 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-self/root/home/giankuin/sieuthiweb.com.vn/wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/ |
Upload File : |
/** * External dependencies */ import { getCategories, setCategories } from '@wordpress/blocks'; import { __ } from '@wordpress/i18n'; import { woo, atom, Icon } from '@woocommerce/icons'; /** * Internal dependencies */ import '../css/editor.scss'; import '../css/style.scss'; import './filters/block-list-block'; import './filters/get-block-attributes'; setCategories( [ ...getCategories().filter( ( { slug } ) => slug !== 'woocommerce' && slug !== 'woocommerce-product-elements' ), { slug: 'woocommerce', title: __( 'WooCommerce', 'woocommerce' ), icon: <Icon srcElement={ woo } />, }, { slug: 'woocommerce-product-elements', title: __( 'WooCommerce Product Elements', 'woocommerce' ), icon: <Icon srcElement={ atom } style={ { fill: '#874FB9' } } />, }, ] );