Created
October 1, 2014 18:54
-
-
Save igmoweb/a6c00e6b1ea2422c74c6 to your computer and use it in GitHub Desktop.
Cambiar strings en WordPress
This file contains hidden or 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
add_filter( 'gettext', 'fictizia_change_strings', 10, 3 ); | |
function fictizia_change_strings( $translate, $text, $domain ) { | |
if ( $text === 'Custom Header' && $domain === 'default' ) { | |
return 'Logotipo'; | |
} | |
return $translate; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment