Mark

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Altering the 'Organizers' Name & Slug? #958355
    Mark
    Participant

    Oh, and don’t forget to flush permalinks afterwards! (Settings -> Permalinks -> Save)

    in reply to: Altering the 'Organizers' Name & Slug? #958354
    Mark
    Participant

    Solved with adding actions to my functions.php, here is the code for anyone else’s reference coming up against this.

    function ea_cooks_label_singular() {
    	return 'Cook';
    }
    add_action('tribe_organizer_label_singular','ea_cooks_label_singular');
    
    function ea_cooks_label_plural() {
    	return 'Cooks';
    }
    add_action('tribe_organizer_label_plural','ea_cooks_label_plural');

    I also needed an archive page, so:

    function ea_add_cooks_archive( $post_type_args ) {
    	$post_type_args['has_archive'] = true;
    	return $post_type_args;
    }
    add_filter( 'tribe_events_register_organizer_type_args', 'ea_add_cooks_archive', 10, 1 );
Viewing 2 posts - 1 through 2 (of 2 total)