- Check if grep is installed
grep --version
If it returns below
grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
- Then install it using brew
grep --version
If it returns below
grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
-- Below queries are just to check the failed order records: | |
SELECT * FROM `wp_woocommerce_order_itemmeta` WHERE order_item_id IN (SELECT order_item_id FROM `wp_woocommerce_order_items` WHERE order_id IN (SELECT ID FROM wp_posts WHERE post_type = 'shop_order' AND post_status='wc-failed')) | |
SELECT * FROM `wp_woocommerce_order_items` WHERE order_id IN (SELECT ID FROM wp_posts WHERE post_type = 'shop_order' AND post_status='wc-failed') | |
SELECT * FROM wp_comments WHERE comment_type = 'order_note' AND comment_post_ID IN(SELECT ID FROM wp_posts WHERE post_type = 'shop_order' AND post_status='wc-failed') | |
SELECT * FROM wp_postmeta WHERE post_id IN ( SELECT ID FROM wp_posts WHERE post_type = 'shop_order' AND post_status='wc-failed') |
Acrylic DNS Proxy (free, open source) does the job. It creates a proxy DNS server (on your own computer) with its own hosts file. The hosts file accepts wildcards. | |
Download from the offical website | |
http://mayakron.altervista.org/support/browse.php?path=Acrylic&name=Home | |
Configuring Acrylic DNS Proxy | |
To configure Acrylic DNS Proxy, install it from the above link then go to: | |
Start |
Run this command in powershell as administrator
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
<?php | |
add_filter('wpcf7_special_mail_tags', 'add_prospectus_link_to_email', 10, 3); | |
function add_prospectus_link_to_email($output, $name, $html) | |
{ | |
$name = preg_replace('/^wpcf7\./', '_', $name); // for back-compat | |
if ('prospectus' == $name) { | |
$prospectus = get_field('prospectus', 'options'); | |
return $prospectus['url']; | |
} |
<?php | |
//========== Filter Search result ========== | |
function amd_search_filter($query) { | |
if(is_admin()) return $query; | |
if ($query->is_search() && !empty($_GET['s']) ) { | |
add_filter( 'posts_where', 'amd_brands_where' ); | |
} | |