WordPress.org

Ready to get started?Download WordPress

Forums

MailChimp List Subscribe Form
Who should have access to the MailChimp settings? (4 posts)

  1. wpmnger
    Member
    Posted 1 year ago #

    As the admin of a site, I would like to grant my Editor the ability to manage his/her MailChimp lists and signup forms but I don't want to grant too many capabilities.

    At the moment I am forced to either manage the Plugin settings myself or grant my Editor 'manage_options' which is more than I would like to.

    Would it be possible to change the capability threshold to 'edit_plugins'? Or would that break the Plugin / create problems?

    (I noticed that that was the terminology you used anyway...)

    30

    // What's our permission (capability) threshold
    define('MCSF_CAP_THRESHOLD', 'manage_options');

    267

    function mailchimpSF_add_pages(){
    	// Add settings page for users who can edit plugins
    	add_options_page( __( 'MailChimp Setup', 'mailchimp_i18n' ), __( 'MailChimp Setup', 'mailchimp_i18n' ), MCSF_CAP_THRESHOLD, 'mailchimpSF_options', 'mailchimpSF_setup_page');
    }

    http://wordpress.org/extend/plugins/mailchimp/

  2. mc_tak
    Member
    Posted 1 year ago #

    Hey there!

    Thanks for posting. Would you be able to elaborate a bit on the specific actions you're looking to limit the user from? If at all helpful, feel free to provide a step-by-step process of an example interaction. This will help me to better understand the situation, and provide any alternative methods, if available.

    Look forward to hearing back!

    -tk

  3. wpmnger
    Member
    Posted 1 year ago #

    Thanks for getting back to me on this mc_tak.

    I am not looking to limit the user, rather to enable the user.

    I want to grant the site editor permissions to access 'settings->mailchimp setup' in the WP Admin. At the moment, the capability threshold for that page is set to 'manage_options'. Which means that by default only site admins can see the page.
    If I grant 'mange_options' to my Editor role I end up opening too many Admin pages and I don't want to do that.

    My suggestion would be to add a feature whereby the site admin can grant a User access to the 'MailChimp Setup' settings page - but that might be too much to ask... So I thought I would ask for something simpler, perhaps the ability to change the capability threshold for the Admin page.

    In my previous post I suggested changing the capability threshold to 'edit_plugins'. That way if I grant 'edit_plugins' to the Editor role, my editor will be able to access the settings page.

    Does that clarify things a bit?

  4. mc_tak
    Member
    Posted 1 year ago #

    Hey wpmnger,

    Sorry that I missed this! Thanks for clarifying the suggestion. I'd be happy to pass this along on my end. It's definitely an interesting thought and it's in-line with the new multi-user features we've began rolling out with MailChimp. Maybe it's worth considering incorporating user-access features to the plugin as well. Thanks again!

    -tk

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic