Follow us on

Codestar Support Forum » WordPress Plugins » Codestar Framework

Admin option on custom admin menu

  1. Hello
    I want to know if it is possible to add the admin option panel, but inside the admin menu, which is already registered by us?
    for example:
    add_menu_page() and add_submenu_page() functions are used, and dedicated header and footer are also placed inside the built-in menu.
    Load the following admin option inside our custom menu:

    CSF::createOptions( $prefix, array());CopyCopied!

    Thank you

    Posted 1 year ago #

  2. Codestar


    Yes, why not. You can do it. See documentation detailed:

    CSF::createOptions( $prefix, array(
      'menu_title'  => 'My Framework',
      'menu_slug'   => 'my-framework',
      'menu_type'   => 'submenu',
      'menu_parent' => 'themes.php',
    ) );CopyCopied!

    Just you should be sure about your custom menu should init before run that CSF::createOptions.

    Regards, Codestar

    Posted 1 year ago #
  3. Hello again
    I apologize for not being able to convey my meaning correctly
    I am attaching a picture for you
    The settings panel should be inside a menu that has a custom header and footer and is already registered in WordPress.
    The code you sent me adds a new menu to WordPress by itself.

    Posted 1 year ago #