Support » Plugin: Ninja Forms Contact Form - The Drag and Drop Form Builder for WordPress » [Plugin: Ninja Forms Lite] Any plans to add Capabilities?

  • Resolved lim2me

    (@lim2me)


    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.

    http://wordpress.org/extend/plugins/ninja-forms/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kevin Stover

    (@kstover)

    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.

    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.

    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

    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' );
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Ninja Forms Lite] Any plans to add Capabilities?’ is closed to new replies.