Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
I have set permissions so that guests can create a new topic, however the required fields for name and email are not set as required. The only field actually required is topic. This is clearly a big problem and as I understand shouldn't be possible in any circumstances. What can I do to make sure Guest email and name are required before submission? I have attached an image of the test site page.
Hi,
Could you please share the URL where we can see the issue?
Thanks. I have emailed you the link as I wasn't sure how to do this confidentially via the support board
@markt ,
Please use the hook-code below:
add_filter( 'wpforo_post_after_init_fields', function( $fields ){ $fields['name']['isRequired'] = $fields['email']['isRequired'] = 1; return $fields; } );
Insert it into your active theme's functions.php file.
Instruction: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/
Hi Sofy, Thanks ever so much. That works perfectly. And so simple. I spent hours with Chat GPT and Gemini trying to sort this out to no avail! We can close this