I want that password restricted posts not ask the password if the user is registered.
I’ve added this code in functions:
add_filter( ‘post_password_required’, function( $returned, $post )
{
// Override it for logged in users:
if( $returned && is_user_logged_in() )
$returned = false;
return $returned;
}, 10, 2 );
However, it’s not working probably because filter is not firing in Enfold theme.
Can you help me?
Thank you in advance
Hey actualizasl,
It is firing in many places.
Are the posts built with the Advanced Layout Builder or default editor?
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria
Yes. All posts are built with Advance Layout Builder.
Hi actualizasl,
You’re running a quite old version of the theme, you need to check the files /enfold/page.php and /enfold/template-builder.php for that filter.
Best regards,
Victoria
Hi actualizasl,
You’re running a quite old version of the theme, you need to check the files /enfold/page.php and /enfold/template-builder.php for that filter.
Best regards,
Victoria
Thank you but, what I’ve to check exactly?
Hi,
Unfortunately you would need to update the theme, so we can be able to help you further.
Best regards,
Basilis