| 1 |
<?php |
| 2 |
/** |
| 3 |
* Contact form module. |
| 4 |
* |
| 5 |
* @package automattic/jetpack |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Module Name: Contact Form |
| 10 |
* Module Description: Add a customizable contact form to any post or page using the Jetpack Form Block. |
| 11 |
* Sort Order: 15 |
| 12 |
* Recommendation Order: 14 |
| 13 |
* First Introduced: 1.3 |
| 14 |
* Requires Connection: No |
| 15 |
* Auto Activate: Yes |
| 16 |
* Module Tags: Other |
| 17 |
* Feature: Writing |
| 18 |
* Additional Search Queries: contact, form, grunion, feedback, submission, contact form, email, feedback, contact form plugin, custom form, custom form plugin, form builder, forms, form maker, survey, contact by jetpack, contact us, forms free |
| 19 |
*/ |
| 20 |
|
| 21 |
require_once __DIR__ . '/contact-form/grunion-contact-form.php'; |
| 22 |
|
| 23 |
/* |
| 24 |
* Filters if the new Contact Form Editor View should be used. |
| 25 |
* |
| 26 |
* A temporary filter to disable the new Editor View for the older UI. |
| 27 |
* Please note this filter and the old UI will be removed in the future. |
| 28 |
* Expected to be removed in Jetpack 5.8 or if a security issue merits removing the old code sooner. |
| 29 |
* |
| 30 |
* @since 5.2.0 |
| 31 |
* |
| 32 |
* @param boolean $view Use new Editor View. Default true. |
| 33 |
*/ |
| 34 |
if ( is_admin() && apply_filters( 'tmp_grunion_allow_editor_view', true ) ) { |
| 35 |
require_once __DIR__ . '/contact-form/grunion-editor-view.php'; |
| 36 |
} |
| 37 |
|