hi i have plugin on my sub menu. i want remove it and add to sub menu and i make it but if i remove code “menu” this all destroy, what i make bad.

add_submenu_page( 'wpjb-config','WordPress Extra Post Info', 'Terms and Conditions','manage_options', 'terms-post-info');


      ($page_title = 'WordPress Extra Post Info');
      _e($menu_title = 'Terms And Conditions');
      $capability = 'manage_options';
      $menu_slug  = 'terms-post-info';
      $function   = 'terms_post_info_page';
      $icon_url   = 'dashicons-media-code';
      $position   = 4;

      add_menu_page( $page_title,
                     $menu_title,
                     $capability,
                     $menu_slug,
                     $function,
                     $icon_url,
                     $position )

;

Read more here: how redo my menu on submenu


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: