PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Hide the Help Section

  1. Imaginate
    Member

    I'm wondering if you could tell me a quick way that I can hide the Help section of the Gravity Forms.

    I'm using the "Role Manager" plugin to enable the ability for my client (with editor) permissions to view the Entries and Export, but I don't want the help section there as that's more for the admin and I don't want my client to see it.

    I didn't see a role manager option for show/hide the gravityforms_help. Could this be enabled somehow? It'd be nice to do it through this so I don't have to edit the plugin itself and break the update path.

    Let me know, thanks.

    Posted 12 years ago on Tuesday February 14, 2012 | Permalink
  2. Hi, Imaginate,

    You can do this using WordPress' "admin_menu" hook and place the code in your theme file's functions.php. In the example below, the call to the "admin_menu" hook needs to have its priority set to a higher number so it fires after the menu has been built; otherwise Gravity Forms would build the menu again.

    Also, when calling "remove_submenu_page" within your function, the parent menu name is the first parameter; the example is using "gf_edit_forms". This will be the name of the first menu item under the Forms menu header. This may be different if you are using Roles Management and have items turned off. To figure out what the name would be of your first menu item, you can mouse-over the name in the admin and review the link that displays. In the link's querystring, you will see "page=". The parameter after "page=" is the name of the menu so you would use that as your first parameter to the "remove_submenu_page" function.

    //set the priority so this is called after the menu had been built
    add_action('admin_menu',  'remove_help', 11);
    function remove_help()
    {
    	//the first parameter is the parent name of the first item in the Forms menu
    	remove_submenu_page("gf_edit_forms","gf_help");
    }
    Posted 12 years ago on Thursday February 16, 2012 | Permalink
  3. Imaginate
    Member

    Beautiful, that did it! Thanks.

    Any chance that the help menu will get it's own string in the future so that we could use something like the "Role Manager" to hide it in the future?

    Posted 12 years ago on Thursday February 16, 2012 | Permalink
  4. I'll mention it to the rest of the team to see if it is something we want to include in a future release.

    Posted 12 years ago on Thursday February 16, 2012 | Permalink

This topic has been resolved and has been closed to new replies.