Skip to content

Instantly share code, notes, and snippets.

View BurlesonBrad's full-sized avatar
🎯
Focusing

Brad Griffin BurlesonBrad

🎯
Focusing
View GitHub Profile
`
### WordPress Environment ###
Home URL: https://emojithreads.com
Site URL: https://emojithreads.com
WC Version: 3.3.3
Log Directory Writable: ✔
WP Version: 5.0-alpha-42752
WP Multisite: –
WP Memory Limit: 1 GB
@BurlesonBrad
BurlesonBrad / custom-thank-you-page.php
Created January 8, 2018 19:41
Custom Thank You Page Redirect
//* TEMPORARY thank you page for LAUNCH
add_action( 'lifterlms_order_process_success', 'llms_thank_you_redirect', 9, 1 );
function llms_thank_you_redirect( $order ) {
wp_redirect( 'https://woocamp.com/launch-thank-you' );
exit();
}
@BurlesonBrad
BurlesonBrad / just-a-snippet.php
Last active November 15, 2019 19:24
Gravatar Prefetch
//* Adding DNS Prefetching
function gucci_dns_prefetch() {
echo '<meta http-equiv="x-dns-prefetch-control" content="on">
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
<link rel="dns-prefetch" href="//fonts.gstatic.com" />
<link rel="dns-prefetch" href="//0.gravatar.com/" />
<link rel="dns-prefetch" href="//2.gravatar.com/" />
<link rel="dns-prefetch" href="//1.gravatar.com/" />';
}
add_action('wp_head', 'gucci_dns_prefetch', 0);
Wordpress
-------------------------------------------
Home Url: https://alifewithfaith.com
Site Url: https://alifewithfaith.com
Version: 4.9
Debug Mode: Yes
Locale: en_US
Multisite: No
Page For Posts: Not Set
@BurlesonBrad
BurlesonBrad / .htaccess
Created October 28, 2017 21:28
for Bobby
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.vitalityscience\.com [NC]
RewriteRule ^(.*)$ http://vitalityscience.com/$1 [L,R=301]
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
@BurlesonBrad
BurlesonBrad / cookie-hider.php
Created August 20, 2017 22:13
Pagely's solution instead of currency switcher's Nginx solution
@BurlesonBrad
BurlesonBrad / snippet.php
Created August 18, 2017 21:09
Aelia + NGINX + Cache
# Add Aelia cookies to the cache key. This will create multiple copies of each
# cached page (one for each combination of currency, country and province/state)
proxy_cache_key "$scheme$request_method$host$request_uri $cookie_aelia_cs_selected_currency$cookie_aelia_customer_country$cookie_aelia_customer_state$cookie_aelia_billing_country";
# IMPORTANT
# This is an example configuration file, and the settings apply to the entire server.
# You should probably adapt these settings to apply to a specific location, instead,
# so that they only affect your specific ecommerce site.
#
# If you are not familiar with Nginx configuration, we recommend to contact your
56662 = https://dunorthdesigns.com/product/but-first-wine-tank/
57698
58086
10463
32389
63478
60303
60287
60277
60308
@BurlesonBrad
BurlesonBrad / they call him Jason
Created August 4, 2017 19:07
EP debugging file
{
"Versions:": {
"WordPress": "4.8.1",
"ElasticPress": "2.3.2",
"Elasticsearch": "2.3.4",
"WooCommerce": "3.1.1"
},
"Active Features": [
"search",
"related_posts",