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 | |
// WP Ultimo's licensing servers have gone offline and are causing | |
// customer networks to have long load times or error out completely. | |
// Blocking the requests to Ultimo's servers resolves this issue. | |
// | |
// H/T Calvin Alkan for suggesting http request filtering as a possible solution | |
add_filter('pre_http_request', 'block_ultimo_http_requests', 10, 3); | |
function block_ultimo_http_requests($preempt, $parsed_args, $url) { |
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
//clear entire cache when stock is reduced or replenished | |
function clear_cache_when_stock_changes( $order ) { | |
if(class_exists('PhpRedis_Purger') || class_exists('Predis_Purger')){ | |
global $nginx_purger; | |
$nginx_purger->purge_all(); | |
} | |
} | |
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
// Default Divi mobile menu dropdown events weren't working for us (didn't want the slideDown/Up functionality), | |
// so replaced it with our own events. We actually opted to use the .closed/.opened classes to hide and show our | |
// nav, but this snippet is a complete drop-in replacement for Divi's mobile dropdowns without needing additional CSS. | |
//unbind existing events on the mobile nav toggle | |
jQuery('.mobile_nav').off(); | |
jQuery(".mobile_menu_bar").click(function(event){ | |
e = jQuery(this); | |
s = jQuery(this).closest('.mobile_nav'); |
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 | |
//this file goes in /wp-content/mu-plugins | |
//https://gist.github.com/butlerblog/c5c5eae5ace5bdaefb5d | |
//constant configs in wp-config.php | |
add_action( 'phpmailer_init', 'use_smtp_email' ); | |
function use_smtp_email( $phpmailer ) { |
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
class AppDelegate < PM::Delegate | |
attr_reader :window | |
def on_load(app, options) | |
open ListEntriesScreen.new(nav_bar: true) | |
end | |
end |
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
.blogList > ul > li{ | |
border:1px solid transparent; | |
} | |
.blogList > ul > li.hover{ | |
cursor: pointer; | |
background: #F6F6F6; | |
border: 1px solid #EEE; | |
} |
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
<style type="text/css"> | |
h1, h2, h3, h4, h5, h6 { | |
font-family: 'Mouse Memoirs', Trebuchet, Tahoma, Arial, sans-serif; | |
} | |
</style> |
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
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script> | |
<script type="text/javascript" src="/assets/js/xdate.0.7.min.js"></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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></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
<a href="/contact?field_92375_1015030=[first]&field_92375_1015031=[last]&field_92375_1015032=[email]">Contact us</a> |
NewerOlder