Skip to content

Instantly share code, notes, and snippets.

@codearachnid
Last active December 19, 2015 20:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codearachnid/6015326 to your computer and use it in GitHub Desktop.
Save codearachnid/6015326 to your computer and use it in GitHub Desktop.
customize your tribe event calendar meta displays with a variety of methods
<?php
/**
* Customize your tribe event calendar meta displays with a variety of methods.
* Place this in your functions.php file within your theme
*/
add_action( 'wp_head', 'custom_event_meta' );
function custom_event_meta(){
// customize just the label
tribe_set_meta_label( 'tribe_event_tag', __( 'Tags:' ) );
// reregister meta (this will merge settings into the original registered settings)
tribe_register_meta( 'tribe_event_website', array(
'classes' => array('meta_before'=> array('url')),
'label' => __( 'More Info:' ),
'register_overwrite' => true, // set to TRUE in order to overwrite the core registration
'filter_callback' => array('Tribe_Register_Meta', 'event_website')
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment