Using ACF User Fields to Show/Hide Divi Modules
-
I’m trying to only display certain Divi modules dependent on whether a logged in users meta data value exists or not. The particular field is called “subscription”.
The code I have come up with so far is the following:
$user_info = get_userdata(get_current_user_id()); $subscription= the_field(‘subscription’, ‘user_’. get_current_user_id()); $subscription !== ”I really have no idea what I’m doing so I apologise if the code is way off the mark. I have searched the plugins support forum here and mashed together what I believe to be the best fit code, but clearly I’m wrong!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Using ACF User Fields to Show/Hide Divi Modules’ is closed to new replies.