I'm trying to find a way to show different content if a post is set to "password protected", once the user entered the correct password.
I want to show the price of an art piece only on posts that are set to password protected.
I can't find any php code to achieve this, since all I can find includes cookies management.
something like :
<?php if($post is set to password protected): ?>
<?php endif; ?>
is there a way to do this ? there must some data stored into the database somewhere right ?
any help would be greatly appreciated ;)