Here is the error:
Warning : call_user_func_array() expects parameter 1 to be a valid callback, function ’ current_user_can’ not found or invalid function name in /home2/csi/public_html/wp-content/plugins/s2member/src/includes/classes/sc-if-conds-in.inc.php on line 181
I’m using WPBakery Page Builder, and I want a row to be only be visible to a certain set of Users. To do this, I set up the row, then entered the Text area of the editor and put in the [s2If current_user_can(access_s2member_level1)] with the closing tag after the row closed.
Not sure why that wouldn’t work, as I have used Shortcodes on past projects. If there is another way to do this, I certainly will give it a try.
ADDENDUM: What Page Builder did was create two extra rows with with Text Blocks, one with the opening [s2If current_user_can(access_s2member_level1)] before my content and one [/s2If] after the content.