Cool Way to Use s2Member With Divi Theme

Hey, just made a cool discovery and wanted to share it, in case anyone else needed it in the future.

If you’re using s2Member with Divi theme, you can use this plugin to show and hide sections, rows and modules based on any s2member conditional!!

This plugin adds a new line in the “Visibility” settings for all sections, rows and modules, where you can add in a php boolean such as current_user_can(‘access_s2member_ccap_music’) or current_user_can(access_s2member_level1)

Was so happy to discover this plugin today, as it opens up waaay more possibilities for Divi theme with s2Member. Hope this can help someone else!

2 Likes

Thanks for sharing this! I’ve been hoping for a way to use S2Member permissions with Divi for years!

I am having problems adding more complex S2Member codes with ‘OR’ in them, such as:

current_user_can(‘access_s2member_ccap_music’) OR current_user_can(‘access_s2member_ccap_dance’)

It only seems to recognise the first custom capability.
Did you ever have any problems with this and find a solution?

Many thanks,
Ian