latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Bryan Chalker

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To


Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
SET custom capability based on the category?

By:  Bryan Chalker in: Community Forum

voices: 1
replies: 2

3 years, 3 months ago  Bryan Chalker

Need to manage multiple subscriptions and…

By:  Bryan Chalker in: Community Forum

voices: 1
replies: 0

3 years, 7 months ago  Bryan Chalker

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Monday Sep 16th, 2013 at 10:48 am #59617

no ideas?

Posted: Thursday Sep 12th, 2013 at 3:08 pm #59498

This is how I assumed it would be handled, but it isn’t working.

add_action ("template_redirect", "TGW_Access_Conditionals");

function TGW_Access_Conditionals()
    {
        if (is_category("Banjo") && !current_user_can("access_s2member_ccap_banjo"))
            {
                header ("Location: ". S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
                exit ();
            }
        if (is_category("Guitar") && !current_user_can("access_s2member_ccap_guitar"))
            {
                header ("Location: ". S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
                exit ();
            }
        if (is_category("Mandolin") && !current_user_can("access_s2member_ccap_mandolin"))
            {
                header ("Location: ". S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
                exit ();
            }
        if (is_category("Bass") && !current_user_can("access_s2member_ccap_bass"))
            {
                header ("Location: ". S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
                exit ();
            }
        if (is_category("Dobro") && !current_user_can("access_s2member_ccap_dobro"))
            {
                header ("Location: ". S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
                exit ();
            }
}
  • This reply was modified 3 years, 3 months ago by  Bryan Chalker.
  • This reply was modified 3 years, 3 months ago by  Bryan Chalker.
Posted: Wednesday Sep 11th, 2013 at 1:58 pm #59457

I’d be interested in this as well. Both are “pro” level plug-ins, with common users. It would be great to learn more about the possible integrations between them.

Viewing 3 replies - 1 through 3 (of 3 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.