Community Support Forums — WordPress® ( Users Helping Users ) — 2011-06-24T23:26:08-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2313 2011-06-24T23:26:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2313&p=21662#p21662 <![CDATA[Re: Removing the S2member meta-box from Post editor page]]>

Statistics: Posted by Cristián Lávaque — June 24th, 2011, 11:26 pm


]]>
2011-06-24T21:38:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2313&p=21657#p21657 <![CDATA[Re: Removing the S2member meta-box from Post editor page]]>
Jim

Statistics: Posted by doctorproctor — June 24th, 2011, 9:38 pm


]]>
2011-06-24T17:44:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2313&p=21644#p21644 <![CDATA[Re: Removing the S2member meta-box from Post editor page]]> /wp-content/mu-plugins/ directory (mu: must use), just create it if it doesn't exist yet.

Statistics: Posted by Cristián Lávaque — June 24th, 2011, 5:44 pm


]]>
2011-06-24T15:24:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2313&p=21636#p21636 <![CDATA[Re: Removing the S2member meta-box from Post editor page]]>
Thanks,

Jim

Statistics: Posted by doctorproctor — June 24th, 2011, 3:24 pm


]]>
2011-03-14T22:41:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2313&p=7830#p7830 <![CDATA[Re: Removing the S2member meta-box from Post editor page]]> Thanks for the excellent question.

With s2Member v3.5.3+, create this directory and file:
/wp-content/mu-plugins/s2-hacks.php

Inside the file, do something like this:
Code:
<?php
add_action 
("plugins_loaded", "my_function");
function my_function ()
    {
        if (current_user_can ("access_s2member_level2"))
            {
                remove_action ("add_meta_boxes", "c_ws_plugin__s2member_meta_boxes::add_meta_boxes");
            }
    }
?>

* This code is untested, please use with caution.

Statistics: Posted by Jason Caldwell — March 14th, 2011, 10:41 pm


]]>
2011-02-17T20:11:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2313&p=6855#p6855 <![CDATA[Re: Removing the S2member meta-box from Post editor page]]>
Code:
   remove_action ("admin_menu", "ws_plugin__s2member_add_meta_boxes");


Next, I tried to nest it in a conditional but it seems the value is not set at the time that functions.php executes.

Code:
if (S2MEMBER_CURRENT_USER_ACCESS_LEVEL > 2){
   remove_action ("admin_menu", "ws_plugin__s2member_add_meta_boxes");
}


Can anyone suggest an alternative?

Statistics: Posted by dwdutch — February 17th, 2011, 8:11 pm


]]>
2011-02-17T18:35:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2313&p=6848#p6848 <![CDATA[Re: Removing the S2member meta-box from Post editor page]]> Statistics: Posted by dwdutch — February 17th, 2011, 6:35 pm


]]>
2011-02-15T20:14:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2313&p=6761#p6761 <![CDATA[Removing the S2member meta-box from Post editor page]]>
Any suggestions?

Statistics: Posted by dwdutch — February 15th, 2011, 8:14 pm


]]>