Skip to content

Instantly share code, notes, and snippets.

@bordoni
Created November 14, 2015 11:08
Show Gist options
  • Select an option

  • Save bordoni/819c225cd1459a3432b9 to your computer and use it in GitHub Desktop.

Select an option

Save bordoni/819c225cd1459a3432b9 to your computer and use it in GitHub Desktop.
<?php
function __dev_filter_names( $i18n, $action, $post_type ) {
$i18n['delete'] = array(
Tribe__Events__Main::POSTTYPE => __( 'Remove a WordCamp', 'tribe-events-community' ),
Tribe__Events__Main::VENUE_POST_TYPE => __( 'Remove a Place', 'tribe-events-community' ),
Tribe__Events__Main::ORGANIZER_POST_TYPE => __( 'Remove a Contributor', 'tribe-events-community' ),
'unknown' => __( 'Unknown Post Type', 'tribe-events-community' ),
);
$i18n['default'] = array(
Tribe__Events__Main::POSTTYPE => __( 'Edit a WordCamp', 'tribe-events-community' ),
Tribe__Events__Main::VENUE_POST_TYPE => __( 'Edit a Place', 'tribe-events-community' ),
Tribe__Events__Main::ORGANIZER_POST_TYPE => __( 'Edit a Contributor', 'tribe-events-community' ),
'unknown' => __( 'Unknown Post Type', 'tribe-events-community' ),
);
return $i18n;
}
add_filter( 'tribe_ce_i18n_page_titles', '__dev_filter_names', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment