Support Forum » User Profile

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Notice: Undefined index: parent #36533
    RenéRené
    Participant

    Hi Julien, I have the same issue, the solution I found is put this in top level pages.

    'parent' => 0

    Using your example code:

    public function my_settings( $settings_pages ) {
    
          // Top level
          $settings_pages[] = array(
              'id'              => 'my-settings-id',
              'option_name'     => 'My Settings',
              'menu_title'      => 'Settings',
              'icon_url'        => 'dashicons-admin-settings',
              'submenu_title'   => 'Général',
              'parent'          => 0,
              'style'           => 'no-boxes',
              'columns'         => 1,
              'position'        => 80,
          );
    
          return $settings_pages;
    
        }
Viewing 1 post (of 1 total)