Skip to content

Instantly share code, notes, and snippets.

View designerken's full-sized avatar

Ken Charity designerken

View GitHub Profile
@geoffgraham
geoffgraham / gist:98e4bc46677cf8969043
Last active May 26, 2016 17:37
Events Calendar 3.9.3 // Change Organizer Slug
/**
* Alter the organizer post type slug.
*
* Remmber that if rewrite-related properties (such as the post type slug) are
* changed you may need to flush permalinks by visting the Permalink Settings
* screen.
*/
function modify_organizer_type_properties( $properties ) {
// Change the slug
$properties['rewrite']['slug'] = 'custom_organizer_slug';
@dwood7399
dwood7399 / enqueue-scripts.php
Created March 22, 2014 19:39
Enqueue JS from dev files when WP_DEBUG is true, else enqueue combined, minimized file
//
// Enqueue JS from dev files or combined, minimized file
//
if( ! function_exists( 'bfc_enqueue_script' ) ) {
function bfc_enqueue_script()
{
if ( defined('WP_DEBUG') AND WP_DEBUG ) {
wp_enqueue_script('lazyload', get_stylesheet_directory_uri().'/js/dev/jquery.lazyload.js', array( 'jquery' ), null, true );