Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #984082

    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

    #984148

    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

    #984226

    Yes. All posts are built with Advance Layout Builder.

    #984591

    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

    #984592

    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

    #984688

    Thank you but, what I’ve to check exactly?

    #984871

    Hi,

    Unfortunately you would need to update the theme, so we can be able to help you further.

    Best regards,
    Basilis

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.