Skip to content

Instantly share code, notes, and snippets.

@bigdigital
Last active December 11, 2017 11:51
Show Gist options
  • Save bigdigital/0434b6825e1b39bd4913722a355a7005 to your computer and use it in GitHub Desktop.
Save bigdigital/0434b6825e1b39bd4913722a355a7005 to your computer and use it in GitHub Desktop.
Change The7 menu text
add_action( 'admin_menu', 'my_menu_filter', 9999 );
function my_menu_filter() {
$replace_text = "My text";
foreach ( $menu AS $k => &$v ) {
$result = array_search( 'the7-dashboard', $v );
if ( $result ) {
$v[0] = str_replace( "The7", $replace_text, $v[0] );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment