Skip to content

Instantly share code, notes, and snippets.

@fovoc
Created March 8, 2015 15:40
Show Gist options
  • Save fovoc/6313d1866eded4427640 to your computer and use it in GitHub Desktop.
Save fovoc/6313d1866eded4427640 to your computer and use it in GitHub Desktop.
Shoestrap 3 - replace default meta-data function with your own
<?php
function remove_default_meta() {
global $ss_blog;
if ( ! class_exists( 'BuddyPress' ) || ( class_exists( 'BuddyPress' ) && ! shoestrap_is_bp() ) ) {
remove_action( 'shoestrap_entry_meta', array( $ss_blog, 'meta_custom_render' ) );
}
}
add_action( 'init', 'remove_default_meta' );
function my_meta() {
// your custom meta code goes here
}
add_action( 'shoestrap_entry_meta', 'my_meta' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment