Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7262
    wpcreativeltd
    Participant

    Hi

    I need to allow a user access to the asset cleanup pro plugin.

    Currently this admin menu item is only seen by admins.

    I have tried allowing manage_options permissions but asset cleanup pro still does not show in the admin menu?

    Any suggestions?

    Thanks

    #7263
    Vladimir
    Keymaster

    Hi,

    Share plugin .zip with support [at-sign] role-editor.com via DropBox, Google Drive or similar service. I will look what permissions it requires. I install such software locally and use in the investigation purpose only.

    #7268
    Vladimir
    Keymaster

    Hi,

    Thanks for the provided information. WPACU plugin uses ‘administrator’ role by default as the permission when defines its admin menu and checks current user permissions.
    But it allows to replace ‘administrator’ with custom permission via filter. For example, code below provides access to WPACU plugin for any user with ‘manage_options’ capability:

    
    add_filter('wpacu_access_role', 'replace_wpacu_admin_permission', 10, 1 );
    function replace_wpacu_admin_permission( $cap ) {
        $cap = 'manage_options';
    
        return $cap;
    }
    

    You can add it to the functions.php file of your active theme.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.