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
/** | |
* Add another email recipient for admin New Order emails if a shippable product is ordered for a specific city | |
* | |
* @param string $recipient a comma-separated string of email recipients (will turn into an array after this filter!) | |
* @param \WC_Order $order the order object for which the email is sent | |
* @return string $recipient the updated list of email recipients | |
*/ | |
function mr_wc_conditional_email_recipient( $recipient, $order ) { | |
// Bail on WC settings pages since the order object isn't yet set yet | |
// Not sure why this is even a thing, but shikata ga nai |
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: Add BCC to WooCommerce emails (with YITH) | |
Plugin URI: https://www.damiencarbery.com/2020/03/add-bcc-to-woocommerce-emails/ | |
Description: Add an email address as BCC to all WooCommerce emails. Updated for when YITH Request a Quote installed. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.1 | |
*/ |
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
### Sites: | |
https://gtmetrix.com/ | |
https://developers.google.com/speed/pagespeed/insights/ | |
### Plugins | |
https://wordpress.org/plugins/query-monitor/ | |
https://wordpress.org/plugins/autoptimize/ | |
https://wordpress.org/plugins/wp-super-cache/ | |
https://wordpress.org/plugins/ewww-image-optimizer/ | |
https://wordpress.org/plugins/jetpack/ |
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
// Version 1.4 | |
const DAY_IN_SECONDS = 60*60*24; | |
const BLACKLISTED_URL_PARAMS = [ | |
'fbclid', // Google Ads click Id | |
'gclid', // Facebook click Id | |
'msclkid', // Micorosft Ads Click Id | |
]; | |
addEventListener('fetch', event => { |
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 // only copy this line if needed | |
add_filter( 'send_password_change_email', '__return_false' ); | |
add_filter( 'send_email_change_email', '__return_false' ); |
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 // only copy if needed | |
/** | |
* Add a custom action to order actions select box on edit order page | |
* Only added for paid orders that haven't fired this action yet | |
* | |
* @param array $actions order actions array to display | |
* @return array - updated actions | |
*/ | |
function sv_wc_add_order_meta_box_action( $actions ) { |
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: Disable WooCommerce Admin | |
* Description: This plugin disables the new WooCommerce Admin package in WooCommerce. | |
* Version: 1.0 | |
*/ | |
add_filter( 'woocommerce_admin_disabled', '__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
/* Flatsome testimonial customization */ | |
.testimonial-box { | |
margin-bottom: 50px; | |
border-radius: 7px; | |
-webkit-box-shadow: 0px 0px 10px 3px rgba(225,225,225,0.75); | |
-moz-box-shadow: 0px 0px 10px 3px rgba(225,225,225,0.75); | |
box-shadow: 0px 0px 10px 3px rgba(225,225,225,0.75); | |
} | |
.testimonial-box .testimonial-image { | |
top: -50px; |
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
/* SIDE NAV CSS DESKTOP */ | |
.mfp-content { | |
width: 30% !important; | |
/* OPTION TO MAKE NAV TRANSPARENT */ | |
/* DELETE OR TURN TO 1 IF YOU DONT WANT THE MENU TO BE TRANSPARENT */ | |
opacity: 0.95 !important; | |
} | |
li.html.custom.html_nav_position_text { | |
padding: 0px; | |
} |
NewerOlder