© 2021 Greatives Hub - Powered by Greatives & Greatives Web

Reply To: Rename Portfolio

Landing Forums Impeka Feedback Rename Portfolio Reply To: Rename Portfolio

#432
Marius1989
Participant
Hub Member Badge

PS: You can always check the menu items array inside the wp admin dashboard for further modification. Just paste this inside your functions.php temporarily. It only will affect your backend.

Having this simple overview makes it quite easy to make required changes to specific areas.

if (!function_exists('debug_admin_menus')):
  function debug_admin_menus() {
      global $submenu, $menu, $pagenow;
      if ( current_user_can('manage_options') ) { // enable for admin role
          if( $pagenow == 'index.php' ) {  // puts the menu array list inside the WP admin dashboard
              echo '<pre>'; print_r( $menu ); echo '</pre>'; // main menu items
              echo '<pre>'; print_r( $submenu ); echo '</pre>'; // submenu items
          }
      }
  }
  add_action( 'admin_notices', 'debug_admin_menus' );
  endif;