Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Created October 2, 2014 19:32
Show Gist options
  • Save jesseeproductions/6f40bd2285168308f1fd to your computer and use it in GitHub Desktop.
Save jesseeproductions/6f40bd2285168308f1fd to your computer and use it in GitHub Desktop.
Remove Please log in first. From Events Calendar Community Add On Login @3.8
/*
* Remove Please log in first. From Events Calendar Community Add On Login
* @version 3.8
*
*/
function filter_translations($translations, $text, $domain) {
if ($domain == 'tribe-events-community') {
$text = str_ireplace( 'Please log in first.', '', $text );
}
return $text;
}
add_filter('gettext', 'filter_translations', 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment