• Resolved julianoe

    (@julianoe)


    Since last update you pulled hcaptcha from under the Settings menu to the main menu, adding to the noise and pollution of this, which is not really necessary for most of us users. Could you at least consider adding an option that allows putting it back under “Settings”?

    Plugins like Easy WP Smtp did it and it’s a good compromise. A website can have lots of plugins and if all of them “WANT” to be on the front menu, the admin UI becomes unusable.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Contributor kaggdesign

    (@kaggdesign)

    The hCaptcha plugin grows and now have 5 subpages, which makes UI inconvenient. That is why we decided to move the menu to the top level.

    12,200 sites updated the plugin yesterday, and I see the first request so far to return the menu back. Anyway, I predicted it.

    You may read the CHANGELOG and find the line under 4.1.0.: “Added a filter to change admin menu appearance.” The filter is described in the Readme. The description contains a working example to bring back ‘tab’ mode, i.e., move the menu back under the “Settings”.

    • This reply was modified 6 months, 3 weeks ago by kaggdesign.
    Thread Starter julianoe

    (@julianoe)

    Not very surprised about the numbers. The ratio of websites using WordPress to admins with skill to understand what happened and time to come open this discussion is huge. That’s the same thing for every general public oriented plugins.

    Thanks for adding the filter, but giving a on/off setting in the settings of the plugin would be better, because it would allow for non-developers to customize it.

    A lot of plugins with more settings and option pages than this one have a single menu line under Settings, I don’t think that’s a very good reason. Going to the main menu for a plugin that is not a daily use one is a bit overkill and not really a good practice.

    hcaptcha is typically the kind of plugin you want to setup once and forget about it. No need to take room in the main menu for that…

    I hope you see my point and take it for what it is: a feedback from a user caring for end users, especially not dev ones, who end up with a WordPress admin looking like a sad Christmas tree. If it was just for myself I could code a plugin to hide the menu item i don’t want in 1 minute.

    Plugin Contributor kaggdesign

    (@kaggdesign)

    We will consider including a switch in our development plan.

    • This reply was modified 6 months, 3 weeks ago by kaggdesign.
    Thread Starter julianoe

    (@julianoe)

    Thanks for considering it. And for providing the link to the readme with instructions to use the filter. Thanks !

    hcap_settings_init_args

    Trying to hook that filter from child theme is already too late.

    Plugin Contributor kaggdesign

    (@kaggdesign)

    It must be hooked from a mu-plugin. I forgot to mention it, will add to the Readme.

    Is it not possible to fix it though?

    Plugin Contributor kaggdesign

    (@kaggdesign)

    It is not a bug. The hCaptcha plugin supports integrations with more than 50 plugins and themes. It means it must init itself earlier than all of them.

    Do you have a problem with creating a mu-plugin? Just create mu-plugins folder, if does not exist, inside of the wp-content folder. Create in this folder a php file with any name, let us say, hcaptcha-hooks.php. Insert the following content to the file.

    /**
     * Filter the settings system initialization arguments.
     *
     * @param array $args Settings system initialization arguments.
     */
    function hcap_settings_init_args_filter( $args ) {
      $args['mode'] = 'tabs';
    
      return $args;
    }
    
    add_filter( 'hcap_settings_init_args', 'hcap_settings_init_args_filter' );

    For additional details, see https://wp-staging.com/how-to-make-a-wordpress-mu-plugin/

    • This reply was modified 6 months, 3 weeks ago by kaggdesign.
    • This reply was modified 6 months, 3 weeks ago by kaggdesign.

    It means it must init itself earlier than all of them.

    Init yes, but when do you need to determine whether to render a top level menu or a submenu item? Ideally not significantly earlier than admin_menu hook.

    Plugin Contributor kaggdesign

    (@kaggdesign)

    You can contribute on our Github. A Pull Request with tests is welcome.

    I wholeheartedly agree with having a button on the settings page that allows hCaptcha to return to its old placement, which was under the settings tab. It’s so unnecessary to have a plugin option right on the admin menu. It’s overkill and bad practice. Additionally, I believe developers should be more receptive to feedback. I love the plugin, its functionality, and the fact that it’s free.

    Plugin Contributor kaggdesign

    (@kaggdesign)

    We hear your votes @keshavbhutra @r4nd99y @julianoe and will raise the priority of the feature.

    Plugin Contributor kaggdesign

    (@kaggdesign)

    @julianoe @keshavbhutra @r4nd99y We have released v 4.1.2 of our plugin. It has the “Tabs Menu Under Settings” option on the General page. You can use it to switch the admin menu position.

    Can confirm it’s working, cheers!

    Plugin Contributor kaggdesign

    (@kaggdesign)

    Please feel free to add a 5-star review ??

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Give us the option to put back hcaptcha menu button under Settings’ is closed to new replies.