آبانا آباندخت آبگین آبگینه آبنوس آبین آبینه آپام آپاما
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Add GTIN Field to WooCommerce Quick Edit Panel | |
| * | |
| * Allows viewing and editing GTIN from the Quick Edit dropdown. | |
| */ | |
| /** | |
| * Get the GTIN field label (same as product settings). | |
| * | |
| * @return string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # colors | |
| green='\033[0;32m' | |
| purple='\033[0;35m' | |
| cyan='\033[0;36m' | |
| yellow='\033[0;33m' | |
| clear='\033[0m' | |
| # loop through immediate subdirectories |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'woocommerce_states', 'dw_woocommerce_states' ); | |
| function dw_woocommerce_states( $states ) { | |
| $states['KW'] = array( | |
| 'KWQ' => __('Dasmān','porto'), | |
| 'KWA' => __('Sharq','porto'), | |
| 'KWZ' => __('Mirgāb','porto'), | |
| 'KWW' => __('Jibla','porto'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Filters that assist in uploading additional filetypes. | |
| * | |
| * @package Your_Package | |
| * @subpackage Your_Package/Includes | |
| */ | |
| namespace Your_Package\Includes; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createHash } from 'crypto' | |
| import { defineConfig } from 'vite' | |
| import react from '@vitejs/plugin-react' | |
| import { | |
| defaultRequestToExternal, | |
| defaultRequestToHandle | |
| } from '@wordpress/dependency-extraction-webpack-plugin/lib/util.js' | |
| import json2php from 'json2php' | |
| import packageMeta from './package.json'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| OpenStreetMap GeoHash generator and direct link generator | |
| Usage examples: | |
| OsmGeoHash\getHash(40.689167, -74.044444, 13) -> returns "Zctz1Jf" | |
| OsmGeoHash\getLink(40.689167, -74.044444, 13) -> returns "https://osm.org/go/Zctz1Jf?m=" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * List of valid HTML attributes that will be passed to first node of component or | |
| * to the node with an attribute 'attributes'. | |
| * Generated from https://www.w3.org/TR/html4/index/attributes.html | |
| * | |
| * @see https://jsfiddle.net/1r8czt2h/ | |
| */ | |
| module.exports = { | |
| elementAttributes: { |
del v7.0.0 moved to pure ESM (no dual support), which forced me to move my gulpfile to ESM to be able to continue to use del.
The author sindresorhus maintains a lot of npm packages and does not want to provides an upgrade guide for each package so he provided a generic guide. But this guide is a bit vague because it's generic and not helping for gulp, hence this guide.
NewerOlder