Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marin Atanasov

    (@tyxla)

    Hi @nathangraham,

    Thanks for the question.

    By hiding the API key from subsites, do you mean hiding the Settings -> Mandrill settings page on the subsite’s administration menu? Or perhaps hiding only the API key section there? Please, clarify.

    Looking forward to assisting you further.

    Regards,
    Marin

    Thread Starter nathangraham

    (@nathangraham)

    Thanks for the quick response, Marin!

    I’m specifically talking about just the API Settings found by navigating to

    Settings -> Mandrill -> (two areas Sender Settings and API Settings)

    It would be nice to have a checkbox option to choose to hide the API settings field from subsites.

    Thanks!

    Plugin Author Marin Atanasov

    (@tyxla)

    Hi @nathangraham,

    Thanks for clarifying!

    I believe this can be useful to some people, anyway, it is not planned for now. The idea of the plugin is to autopopulate the wpMandrill settings to all subsites automatically, but to still allow subsite admins to override these settings, in case they want to. So I believe such option does not have a place in this plugin.

    Thank you for the idea anyway!

    And in case you want to achieve this in your site, you can add this snippet of javascript code in your subsites administration:

    jQuery(function($) {
    	$(document).on('ready', function() {
    		$('.settings_page_wpmandrill form h3:eq(0), .settings_page_wpmandrill form .form-table:eq(0)').remove();
    	});
    });

    This will essentially remove the API Settings title and the API Key field.

    Wish you all best!

    Regards,
    Marin

    Josh Feck

    (@builtbynorthby)

    We needed to do this for our Mandrill integration on our demo site. Here’s a link to where you can find some code that you can put into an MU plugin:

    https://github.com/eventespresso/demoee_mu_hideadminpages/blob/master/demoee_mu_hideadminpages.php

    The code will remove the wpmandrill settings page for all subsites.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide API Key from subsites’ is closed to new replies.