Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Custom snippet for renaming the MainWP Dashboard WP Admin menu header
// Add the following code snippet to the functions.php file of the MainWP Customisations plugin
// Download MainWP Customisations here:
// More about the plugin:
add_action( 'admin_head', 'mycustom_menu_admin_head' );
function mycustom_menu_admin_head() {
global $menu;
foreach( $menu as &$item ) {
if ( $item[2] == 'mainwp_tab' ) {
$item[0] = 'Demo Header';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.