Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3350
    John B.
    Participant

    The attachments list is showing on the protected pages right underneath the password login box – Am I missing a setting to view AFTER logging into a protected page?

    Thanks,

    John

    #3355
    Bartosz
    Keymaster

    Good point John,

    But there’s a filter you can use to make it protected:

    function protected_da_display_attachments($attachments) {
        if (post_password_required())
            $attachments = '';
        return $attachments;
    }
    add_filter('da_display_attachments', 'protected_da_display_attachments');
    #3357
    John B.
    Participant

    Thanks so much :)

    One more question. Where do I paste the code? lol

    John

    #3358
    Bartosz
    Keymaster

    Into functions.php of your current theme.

    #16042
    GUmarketing
    Participant
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.