Skip to content

Instantly share code, notes, and snippets.

View zacscott's full-sized avatar

Zac Scott zacscott

View GitHub Profile
@zacscott
zacscott / fragment-cache.php
Last active March 11, 2017 11:08
Fragment caching utility class for WordPress. Based off; https://gist.github.com/markjaquith/2653957
<?php
/*
* Plugin Name: Fragment Cache
* Description: Fragment cache provider plugin
* Version: 1.2
* Author: Zachary Scott
*/
namespace zacscott;
@zacscott
zacscott / cache-helper.php
Last active March 11, 2017 11:08
Caching helper class for WordPress (can be used as a mu-plugin)
<?php
/*
* Plugin Name: Cache Helper
* Description: CacheHelper class provider plugin
* Version: 1.0
* Author: Zachary Scott
*/
namespace zacscott;
@zacscott
zacscott / relative-links.php
Last active March 11, 2017 11:08
Relative Links - WordPress plugin
@zacscott
zacscott / disable-nags.php
Last active March 11, 2017 11:08
Disable Nags - WordPress plugin
<?php
/**
* Plugin Name: Disable Nags
* Description: Disables the WP core update nags in the backend on production
* Version: 1.1
* Author: Zachary Scott
*/
namespace zacscott;
@zacscott
zacscott / disable-https.php
Last active March 11, 2017 11:08
Disable HTTPS in for WordPress
<?php
/**
* Plugin Name: Disable HTTPS
* Description: Disables HTTPS in WordPress
* Version: 1.0
* Author: Zachary Scott
*/
namespace zacscott;
@zacscott
zacscott / force-lowercase-urls.php
Last active March 11, 2017 11:08
Forces all WordPress lowercase URLs
<?php
/**
* Plugin Name: Force Lowercase URLs
* Description: Forces all lowercase URLs
* Version: 1.0
* Author: Zachary Scott
*/
if( ! is_admin() ){
@zacscott
zacscott / maintenance-mode.php
Last active March 11, 2017 11:07
Disables the WP during maintenance / updates
<?php
/**
* Plugin Name: Maintenance Mode
* Description: Disables the WP during maintenance / updates
* Version: 1.1
* Author: Zachary Scott
*/
namespace zacscott;
@zacscott
zacscott / relative-urls.php
Last active March 11, 2017 11:07
Converts all links in post content, attachments etc. to root relative. This is specifically designed to work well with RAMP
<?php
/**
* Plugin Name: Relative URLs
* Description: Converts all links in post content, attachments etc. to root
* relative. This is specifically designed to work well with
* <a href="https://crowdfavorite.com/ramp/">RAMP</a>.
* Version: 1.1
* Author: Zachary Scott
*/
@zacscott
zacscott / allow-https.php
Last active March 11, 2017 11:07
Fixes the canonical URL to always be HTTP (SEO)
<?php
/**
* Plugin Name: Allow HTTPS
* Description: Fixes the canonical URL to always be HTTP
* Version: 1.0
* Author: Zachary Scott
*/
namespace zacscott;
@zacscott
zacscott / purge-cache.php
Last active March 11, 2017 11:07
Allow admins to purge the WordPress cache
<?php
/**
* Plugin Name: Purge Cache
* Description: Allow admins to purge the WordPress cache
* Version: 1.1
* Author: Zachary Scott
*/
namespace zacscott;