Add an email input field.

73 viewsGeneral
0

I want to add an email field for logged-out guests who want to ask questions or leave comments. By default, the plugin only allows name input.

Answered question
0

Use the AnsPress form API to inject a custom field into the question form. Set ‘type’ => ‘input’ and ‘subtype’ => ’email’, then hook into form processing to store the value (e.g. user meta or post meta).

Answered question