Skip to content

Instantly share code, notes, and snippets.

@blobaugh
Created April 5, 2017 15:48
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 blobaugh/3a5fd40a73fe6bea943e73e5d5f4c349 to your computer and use it in GitHub Desktop.
Save blobaugh/3a5fd40a73fe6bea943e73e5d5f4c349 to your computer and use it in GitHub Desktop.
Example changing media button text - not tested
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