WordPress.org

Ready to get started?Download WordPress

Forums

Flamingo
Inbound Messages screen displays blank values (4 posts)

  1. MG7282
    Member
    Posted 1 year ago #

    One of my forms doesn't use the field your-name or subject, therefore when the form is submitted there's no way to identify the form on the Inbound Messages screen. Is it possible to assign another field to the your-name and subject? Example: your-name = your-first-name + your-last-name ?

    http://wordpress.org/extend/plugins/flamingo/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    For now, you need to replace function assigned to the wpcf7_before_send_mail hook in the contact-form-7/modules/flamingo.php (currently it is wpcf7_flamingo_before_send_mail). It will be easier in the future release.

  3. MG7282
    Member
    Posted 1 year ago #

    What should the code be instead?

    Does this look right?

    $name = isset( $posted_data['your-name'] ) ? trim( $posted_data['your-name'] ) : $posted_data['your-first-name'] . ' ' . $posted_data['your-last-name'];

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

    Right.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic