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: Riaan van der Westhuizen

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


Topics I'm Subscribed To

Viewing topic 1 (of 1 total)
Topic Count Last Reply
I have some questions

By:  Viruthagiri Thirumavalavan in: Community Forum

voices: 2
replies: 10

4 years, 9 months ago  Riaan van der Westhuizen

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Wednesday Mar 28th, 2012 at 5:20 pm #9380

Anytime!

Posted: Wednesday Mar 28th, 2012 at 5:18 pm #9378

I actually think it will be fine, seeing that “current_user_can” is part of WordPress:

http://codex.wordpress.org/Function_Reference/current_user_can

So that code will still execute regardless, and will simply return “false”.

Posted: Wednesday Mar 28th, 2012 at 4:56 pm #9375

I did a quick test by disabling S2Member, and the code:

if (current_user_can("access_s2member_level1")){
	echo $content; 
} 

doesn’t throw any errors…

Posted: Wednesday Mar 28th, 2012 at 4:13 pm #9367

It looks like you wouldn’t have to check, as far as I can tell. The “current_user_can” method is a standard WordPress method.

Go have a look under “S2Member > API/Scripting” in the Dashboard – there is a lot of info!

Posted: Wednesday Mar 28th, 2012 at 3:18 pm #9358

Thanks for the initial if statement – it’ll help me a lot!

Did you figure out how to check if the s2member plugin is installed?

Viewing 5 replies - 1 through 5 (of 5 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.