• Resolved Imageahmedali23

    (@ahmedali23)


    Hi,
    How can we allow subsite admin to use editing features?
    Currently, the super admin can use this plugin for editing. We want subsite admin to use this plugin as well.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ImageJanis Elsts

    (@whiteshadow)

    You might be able to do that by using the vac_required_capability filter to change the capability that is required to access the plugin to something that subsite admins have. I think the manage_options capability would work.

    For example:

    function ws_change_vac_capability($cap) {
        return 'manage_options';
    }
    add_filter('vac_required_capability', 'ws_change_vac_capability');
    Thread Starter Imageahmedali23

    (@ahmedali23)

    Thanks for your rapid response.
    Where should I place this code? In plugin files or functions.php file of the theme?

    Plugin Author ImageJanis Elsts

    (@whiteshadow)

    functions.php would work. I would not recommend adding the code to existing plugin files.

    Alternatively, you could create a mini-plugin that just runs this code, or use a plugin like Code Snippets (no affiliation) to run the code without modifying any files.

    Thread Starter Imageahmedali23

    (@ahmedali23)

    Thanks for your support.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Allow sub-site admin to use editing features’ is closed to new replies.