• Resolved GermanKiwi

    (@germankiwi)


    Hi there,

    May I suggest moving the menu for Invisible Recaptcha from the top-level menu sidebar, into the Settings submenu?

    The reason is that when it’s listed as a top-level menu, it adds additional clutter to an already busy sidebar.

    Furthermore, I believe the Settings menu is really the correct and intended place to put a plugin’s settings page, according to WordPress guidelines:
    https://codex.www.ads-software.com/Administration_Menus#Determining_Location_for_New_Menus
    “Adding a top-level menu should only be considered if you really need multiple, related screens to make WordPress do something it was not originally designed to accomplish.”

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author MihChe

    (@mihche)

    Probably I’ll take care of this in one of the upcoming versions.
    Thanks for your suggestion.
    ~Mihai

    Thread Starter GermanKiwi

    (@germankiwi)

    Awesome, thanks!

    A really good idea. You can do it already with this code:

    
    function theme_invrecaptcha_readd_admin_menu_item() {
      add_submenu_page(
        'options-general.php',
        'Invisible reCAPTCHA Settings',
        'Invisible reCAPTCHA',
        'manage_options',
        'invisible-recaptcha-settings'
      );
    }
    add_action( 'admin_menu', 'theme_invrecaptcha_readd_admin_menu_item', 10);
    
    function theme_invrecaptcha_remove_admin_menu_item() {
      remove_menu_page(
        'invisible-recaptcha-settings'
      );
    }
    add_action( 'admin_menu', 'theme_invrecaptcha_remove_admin_menu_item', 11 );
    
    Thread Starter GermanKiwi

    (@germankiwi)

    Thanks @certainlyakey, that works great!

    Looking forward to when @mihche might add this to the plugin itself. ??

    Plugin Author MihChe

    (@mihche)

    Hi @certainlyakey, @germankiwi

    This was implemented in version 1.1.
    Please let me know if you guys encounter any issue.

    On the other hand, if you’re happy with my plugin I’ll really appreciate if you have 2 seconds to write a short review.

    Cheeers,
    Mihai

    Thread Starter GermanKiwi

    (@germankiwi)

    Works great – thanks a bunch! And I’ve left you a review! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Move menu into Settings’ is closed to new replies.