I want to include a conditional statement in my WordPress theme that checks if user has or has not connected their existing WordPress account to Patreon.
what I want to do
- If they are not connected to Patreon show the Patreon button (using the shortcode
[patreon_login_button]
). - If they are connected with a $0 pledge show a link to the Patreon website
- If they are connected and have a Patreon membership greater than $1 show a link to their Patreon memberships (on Patreon website).
How do I check for the instance of a $0 value pledge. I’ve tried to check for $user_patronage == 0
, however this causes the output to display even before user has connected their account.