'wc-pending' => _x( 'Pending payment', 'Order status', 'woocommerce' ),
'wc-processing' => _x( 'Processing', 'Order status', 'woocommerce' ),
'wc-on-hold' => _x( 'On hold', 'Order status', 'woocommerce' ),
'wc-completed' => _x( 'Completed', 'Order status', 'woocommerce' ),
'wc-cancelled' => _x( 'Cancelled', 'Order status', 'woocommerce' ),
'wc-refunded' => _x( 'Refunded', 'Order status', 'woocommerce' ), // Excluded
'wc-failed' => _x( 'Failed', 'Order status', 'woocommerce' ), // Excluded
This file contains 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
docker system prune -f --volumes | |
docker container prune -f | |
docker container stop $(docker container ls -aq) | |
docker container rm $(docker container ls -aq) | |
docker image prune -f -a | |
docker volume prune -f | |
docker network prune -f |
This file contains 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 | |
/** | |
* Plugin Name: Everest Forms - Auto Updates | |
* Plugin URI: https://github.com/wpeverest/everest-forms-auto-updates | |
* Description: Auto-updates Everest Forms to the latest stable version. | |
* Version: 1.0.0 | |
* Author: WPEverest | |
* Author URI: https://wpeverest.com | |
* License: GPLv3 or later | |
* |
This file contains 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 shutil | |
import os | |
import requests | |
from bs4 import BeautifulSoup | |
# URL handlers to scraped. | |
url_handles = [ | |
'motivational-quotes', | |
'inspirational-entrepreneurship-quotes', |
This file contains 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 // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
add_filter( 'gettext', 'custom_order_button_strings', 20 ); | |
/** | |
* Change order button text strings. | |
* |
This file contains 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 // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
add_action( 'plugins_loaded', 'remove_wc_get_formatted_order_total_filters' ); | |
/** | |
* Remove all filters for WC formatted order total. | |
*/ |
This file contains 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 // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
if ( class_exists( 'WooCommerce' ) ) { | |
add_action( 'post_class', 'wc_order_post_class', 20, 3 ); | |
} | |
/** |
This file contains 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 // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' ); | |
/** | |
* Enqueue the Dashicons script. | |
*/ |
This file contains 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 // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
add_filter( 'woocommerce_rest_check_permissions', '__return_true' ); |
This file contains 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 // Do not include this if already open! | |
/** | |
* Code goes in theme functions.php. | |
*/ | |
add_filter( 'rest_url_prefix', 'custom_rest_url_prefix' ); | |
/** | |
* Modify url base from 'wp-json' to 'api' prefix. | |
*/ |