This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
The preview page for the contact form, which is automatically installed on every site, is now blocked for anyone without access to view the forms list. Additionally, the preview page will no longer display a form when an incorrect key is used. This measure helps prevent spam targeting the default form.
Use this filter to unblock the default form and to block additional forms.
Usage
add_filter( 'frm_block_preview', '__return_false' );
Parameters
- None
Examples
Unblock Form preview
The default contact form is blocked from previewing for users who cannot access the forms list. Use this code example to revert this.
add_filter( 'frm_block_preview', '__return_false' );