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
| # removes "wholesale-" prefix from all files. | |
| for filename in wholesale-*; do | |
| [ -f "$filename" ] || continue | |
| mv "$filename" "${filename//wholesale-/}" | |
| done |
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
| *{ | |
| font-size: "ONE MILLION and one!"; | |
| } |
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
| <form name="myform" method="GET" action="<?php echo esc_url(home_url('/'));?>"> | |
| <?php if (class_exists('WooCommerce')): ?> | |
| <?php | |
| if (isset($_REQUEST['product_cat']) && !empty($_REQUEST['product_cat'])) { | |
| $optsetlect = $_REQUEST['product_cat']; | |
| } else { | |
| $optsetlect = 0; | |
| } | |
| $args = array( |
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
| find /FULL/PATHNAME/OF/WHAT/YOU/WANT/TO/SAVE/ -path '*/.*' -prune -o -type f -print | zip ~/WHERE_TO_SAVE.zip -@ |
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
| Aren't gists great! |
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
| Edit the file through GISTDOX! | |
| yea |
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 | |
| /* | |
| Creates and end-point that get Yoast SEO meta tags... | |
| */ | |
| add_action('rest_api_init', 'add_yoast_data'); | |
| function add_yoast_data() | |
| { | |
| // Add your post types here... | |
| register_rest_field(array( |
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
| - Get between two quotes: https://regex101.com/r/mpgagB/1 |
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 | |
| // credit: ChromeOrange - https://gist.github.com/ChromeOrange/10013862 | |
| add_filter( 'woocommerce_package_rates' , 'sort_woocommerce_available_shipping_methods', 10, 2 ); | |
| function sort_woocommerce_available_shipping_methods( $rates, $package ) { | |
| // if there are no rates don't do anything | |
| if ( ! $rates ) { | |
| return; | |
| } | |
| // get an array of prices |
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 React from 'react'; | |
| import LoadingAnimation01 from './LoadingAnimation01' | |
| class ImgPreloader extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { imageStatus: 'loading', imageLoaded: false }; | |
| } | |
| componentDidMount() { |