Here’s a script you can use to automatically complete virtual orders from any status. This example uses the ‘processing’ status. add_action(‘woocommerce_order_status_changed’, ‘ts_auto_complete_virtual’); function ts_auto_complete_virtual($order_id) { if ( ! $order_id ) { return; } global $product; $order = wc_get_order( $order_id ); if ($order->data[‘status’] == ‘processing’) { $virtual_order = null; if ( count( $order->get_items() ) > 0 ..
Category : Javascript
I’ve used this script in the header of a few Word Press websites. Works well. I found this answer here: https://www.buildthatwebsite.com/pass-email-to-form-with-qu..
http://www.dynamicdrive.com/dynamicindex8/exitpopup/#mob..
Here’s a great website if you want to know the width and height of your screen. http://www.mydevice.io/ &nb..
Google recommends using JSON-LD as the data format for your structured data. The schema.org markup should be embedded on your official web site. The below website will show you how and even show you some examples. https://developers.google.com/structured-data/local-businesses/#adding_structured_data_markup_to..
The following code was tested with DIVI 4.8.2 in the child theme footer ..