Last active
December 11, 2017 11:51
-
-
Save bigdigital/0434b6825e1b39bd4913722a355a7005 to your computer and use it in GitHub Desktop.
Change The7 menu text
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_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