[resolved] Looking for contact form plugin with logged in user support (3 posts)

  1. Dan Jones
    Posted 7 years ago #

    I'm looking for a contact form plugin that can check if the person submitting the form is a logged-in user, and submit the username (and possibly other login info) with the email that it sends to me.

  2. Dan Jones
    Posted 7 years ago #

    By the way, I finally figured out a way to do this. My contact form is on a Page, so I created a custom page template in my theme.

    Before The Loop, I put in:

    <?php if (is_user_logged_in()) : ?>

    And then after The Loop, there's:

    <?php else: ?>
    <!-- Message telling them to log in -->
    <?php endif; ?>

    Then I just used that custom template for that Page.

  3. Mistainu
    Posted 7 years ago #

    i'm also using a form that only displays when logged in. so i'd like to be able to receive the contact's username as well. is there such a plugin?

Topic Closed

This topic has been closed to new replies.

About this Topic