Ninja Forms
[resolved] Any plans to add Capabilities? (5 posts)

  1. lim2me
    Posted 4 years ago #

    It seems that by default only Administrators can add/edit/delete forms. Would love to be able to extend this capability to other User Roles.

    Any chance on having capabilities added to Ninja Forms? It doesn't have to explicitly manage the Roles & Capabilities -- we can use plugins like User Role Editor -- but we'd need the actual capability available.


  2. Kevin Stover
    The WP Ninjas
    Plugin Author

    Posted 4 years ago #

    Currently, we don't have plans to do this, but we will look at adding it to our feature track for coming versions of the plugin.

  3. sylviabass
    Posted 3 years ago #

    I'd really like to see this feature, too. I am creating a site and don't need/want to give the users administrator access, but want them to be able to edit the forms and download the data.

  4. gmg
    Posted 3 years ago #

    After installation of Ninja forms (plus purchase of extensions). I was disappointed when
    I could not allow editors to view the Ninja forms with their dashboard accounts. The front-end submission/editing forms is a bit confusing for some people (with limited computer experience). Users who are learning worpdress like to use the dashboard to see the forms submissions. Thank you

  5. sylviabass
    Posted 3 years ago #

    I was able to get help from one of the Ninja Forms developers on their forum. http://wpninjas.com/support/topic/how-to-allow-non-admins-the-capability-to-manage-forms/

    They don't have a way to do this currently other than hooking into the filters. I didn't know how to do this and they gave me this code to create my own small plugin. That works well. The $capabilities variable can be changed to filter by capability. "edit_others_posts" is one that Editors and Admins share. The code they gave me initially allowed editors, but disallowed admins. The list of capabilities can be found on the WordPress Codex at http://codex.wordpress.org/Roles_and_Capabilities

    I would also contact Ninja Forms and request this feature. The more they hear it, the more likely it will become that they'll either add it in or create the extension allowing it.

    Here's the code that worked for me and here's how to create a plugin. https://codex.wordpress.org/Writing_a_Plugin

    function my_custom_change_ninja_forms_capabilities_filter( $capabilities ) {
        $capabilities = "edit_others_posts";
        return $capabilities;
    add_filter( 'ninja_forms_admin_menu_capabilities', 'my_custom_change_ninja_forms_capabilities_filter' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ninja Forms
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic