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
/** | |
* 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'; |
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
// | |
// 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 ); |