Last active
December 19, 2015 20:48
-
-
Save codearachnid/6015326 to your computer and use it in GitHub Desktop.
customize your tribe event calendar meta displays with a variety of methods
This file contains hidden or 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
<?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