Skip to content

Instantly share code, notes, and snippets.

View BurlesonBrad's full-sized avatar
🎯
Focusing

Brad Griffin BurlesonBrad

🎯
Focusing
View GitHub Profile
# 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 / .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 /
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 / 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);
@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();
}
`
### 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 / text-lifting-snippet.php
Last active December 16, 2018 12:16
Changing Text in LIfterLMS
<?php
/**
* Plugin Name: Lift The Text
* Plugin URI: https://yourmom.com
* Description: Engage Maverick | ENGAGE! Make a conversation with your customer and customize EVERY piece of Text!
* Version: 1
* Author: Brad
* Author URI: https://yourmom.com
* Requires at least: 4.9.6
* Tested up to: 5.0-alpha-43049
@BurlesonBrad
BurlesonBrad / notes.txt
Created June 3, 2018 18:54
secret gist notes for referencing
Subscription Notes:
04-20-2018 @ 10:13:18 - scheduled action 52816 (subscription payment) failed to finish processing after 300 seconds
04-20-2018 @ 10:13:18 - action args: subscription_id: 52814
04-22-2018 @ 20:03:38 - scheduled action 52851 (subscription payment) failed to finish processing after 300 seconds
04-22-2018 @ 20:03:38 - action args: subscription_id: 48221
04-26-2018 @ 19:03:26 - scheduled action 53609 (subscription payment) failed to finish processing after 300 seconds
04-26-2018 @ 19:03:26 - action args: subscription_id: 52391
04-26-2018 @ 22:05:28 - scheduled action 53801 (subscription payment) failed to finish processing after 300 seconds
04-26-2018 @ 22:05:28 - action args: subscription_id: 48312
@BurlesonBrad
BurlesonBrad / gdpr-change.php
Last active June 11, 2018 21:41
Change GDPR text
function gdpr_uwphelp( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Save my name, email, and website in this browser for the next time I comment.' :
$translated_text = __( 'UltimateWPHelp can change the default text' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'gdpr_uwphelp', 20, 3 );
@BurlesonBrad
BurlesonBrad / josh.txt
Created July 24, 2018 13:18
.htaccess
Redirect 301 https://saveonmagazines.com/this-is-your-old-url https://saveonmagazines.com/this-is-the-NEW-url