Viewing 5 replies - 16 through 20 (of 20 total)
  • Hi, great plugin, but I’m also looking for a option or workaround to hide the email content settings on a subscribers profile page. They should be NOT allowed to see this settings.

    I would like to hide all options like HTML – Full HTML – Excerpt Plain Text – Full.

    Only want to use Excerpt Plain.

    @muratje,

    It’s a core feature of the plugin, just because it’s not something you would want if you wrote the plugin does not mean it’s not something the I or other users like.

    Currently the default behaviour cannot be changed easily but since it’s open source software you can make any changes to the code you like so feel free to edit the code and remove the bots you don’t like or need.

    If I get the time one day I may implement an easier way to disable this part of the code.

    Thread Starter thinkwired

    (@thinkwired)

    So far so good. Thank you very much for your time and help.

    Made a small donation (and would have even if you didn’t take the time out to help me — great plugin, cheers).

    Thread Starter thinkwired

    (@thinkwired)

    Matty, do you think I have to worry about the mini-plugin you suggested no longer working after future upgrades (or recent upgrades)?

    function s2_remove_subscriber_role($subscribers) {
    	$user_query = new WP_User_Query( array( 'role' => 'subscriber', 'fields' => array('user_email') ) );
    	$subscriber_role = $user_query->get_results();
    
    	$exclude = array();
    	foreach ($subscriber_role as $user) {
    		$exclude[] = $user->user_email;
    	}
    
    	return array_diff($subscribers, $exclude);
    }
    
    add_filter('s2_registered_subscribers', 's2_remove_subscriber_role');

    @thinkwired,

    There should be now issues with upgrading provided you put this code into it’s own plugin file rather than adding it to an existing plugin.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘[Plugin: Subscribe2] Limit to Plain Text – Excerpt?’ is closed to new replies.