- Because you can
- Because you have time to spare
- Maybe you think they look cool or want to save them for wallpapers or something
- Maybe it reminds you of that one time... You know which time I'm talking about
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 | |
/* To add custom field in order review table in checkout page, you will have to use some of the hooks listed below. | |
do_action( 'woocommerce_review_order_before_cart_contents' ); | |
do_action( 'woocommerce_review_order_after_cart_contents' ); | |
do_action( 'woocommerce_review_order_before_shipping' ); | |
do_action( 'woocommerce_review_order_after_shipping' ); | |
do_action( 'woocommerce_review_order_before_order_total' ); | |
do_action( 'woocommerce_review_order_after_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 | |
/** | |
* Check for $_GET params on admin pages and use them to create corresponding actions. | |
* | |
* Example URL string to append to any admin page: &as_add_actions=single&hook=my_action&time=1563420973 | |
*/ | |
function as_test_schedule_async_action() { | |
if ( ! isset( $_GET['as_add_actions'] ) ) { | |
return; | |
} |
WooCommerce 3.5 introduced a new scalable, traceable job queue. This queue can be used by extensions and custom code to process large sets of jobs in the background, and track the lifecycle of those jobs. The default handler can also be replaced.
This guide explains how to use the queue APIs for adding jobs, and how to replace the default queue handler.
For flexibility and simplicity, each job is defined by an action hook.
-
Include Weather Icons in your app: https://github.com/erikflowers/weather-icons
-
Include the below JSON in your application, for example purposes, lets assume it's a global named
weatherIcons
. -
Make a request to OpenWeatherMap:
req = $.getJSON('http://api.openweathermap.org/data/2.5/weather?q=London,uk&callback=?');
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 COPY THE PARTS ABOVE THIS LINE *********/ | |
/* | |
* Replace Disallow with Allow Generated Robots.txt | |
* Credit: Unknown | |
* Last Tested: June 09 2020 using WordPress 5.4.1 | |
*/ | |
add_filter('robots_txt','custom_robots'); |