Created
October 5, 2022 13:44
-
-
Save kadimi/d765063b86a3b41ffedc59aa331626ff to your computer and use it in GitHub Desktop.
SportsPress - Translate "Read more..."
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
<?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