Created
April 5, 2017 15:48
-
-
Save blobaugh/3a5fd40a73fe6bea943e73e5d5f4c349 to your computer and use it in GitHub Desktop.
Example changing media button text - not tested
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
function wds_rename_media_button( $translation, $text ) { | |
if( is_admin() && 'Add Media' === $text ) { | |
return 'Add Files and all other things'; | |
} | |
return $translation; | |
} | |
add_filter( 'gettext', wds_rename_media_button, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment