Negative PHP code not working
-
I am using this code with your plugin to show Divi modules based on this criteria and it’s working well:
$user_id = wp_get_current_user()->ID; is_subscribed_to_any_memberful_plan( $user_id )
However, when I try to use the “negative” version to show content to a user who does NOT have a plan it doesn’t work:
$user_id = wp_get_current_user()->ID; !is_subscribed_to_any_memberful_plan( $user_id )
Any thoughts on why the second example with the exclamation point would not be working, when the one without exclamation works fine?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Negative PHP code not working’ is closed to new replies.