Last active
May 26, 2016 17:37
-
-
Save geoffgraham/98e4bc46677cf8969043 to your computer and use it in GitHub Desktop.
Events Calendar 3.9.3 // Change 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
/** | |
* 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'; | |
return $properties; | |
} | |
// This hook is only available if Events Calendar PRO is activated | |
add_filter( 'tribe_events_register_organizer_type_args', 'modify_organizer_type_properties' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment