Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kadimi
Created October 5, 2022 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kadimi/d765063b86a3b41ffedc59aa331626ff to your computer and use it in GitHub Desktop.
Save kadimi/d765063b86a3b41ffedc59aa331626ff to your computer and use it in GitHub Desktop.
SportsPress - Translate "Read more..."
<?php
add_filter( 'gettext', function( $translated_text, $text, $domain ) {
if ( 'mega-slider' === $domain ) {
if ( 'Read more...' === $text ) {
return 'YOUR TEXT HERE';
}
}
return $translated_text;
}, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment