Current User Can : Access User Level - PHP conditional not working

Hi I’m trying to use this if(current_user_can(access_s2member_level3)){ }

However wp debug reports: Use of undefined constant: access_s2member_level3 - assumed ‘access_s2member_level3’

Are there other defined constants to allow this sort of conditional?

Thanks

OOps I figured it out, forgot the ’ ’ :

if(current_user_can(‘access_s2member_level3’)){ }

1 Like