Password Protect Custom Fields
-
Hi
I am trying to password protect custom fields using the default WordPress Password Protect feature.
Can you confirm if the following code will work with hiding a location custom fields. I will need to expand this to multiple fields.
if ( post_password_required() ) { $value = get_field( "Location" ); if( $value ) { echo $value; } } else { echo 'You need to enter a password to see this information'; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Password Protect Custom Fields’ is closed to new replies.