WordPress.org

Ready to get started?Download WordPress

Forums

Usernoise modal feedback / contact form
Example of custom fields (2 posts)

  1. Zilli
    Member
    Posted 2 years ago #

    Hi there,

    Could you give us some example in how to add custom fields on the form?

    Cheers,

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

  2. karevn
    Member
    Posted 2 years ago #

    I am still developing my site - going to publish a full tutorial there. But here are a couple of keypoints:
    - Render your custom fields in un_feedback_form_body action.
    - Save your custom field values in un_feedback_created action that receives id of the post created and $_POST parameters with slashes stripped.
    - Validate your fields in un_validate_feedback filter. It receives an array of validation errors. If you'll return an empty array - Usernoise thinks that validation passed with OK result.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags