contact-form.php
| 1 | <?php |
| 2 | /** |
| 3 | * Module Name: Contact Form |
| 4 | * Module Description: Insert a customizable contact form anywhere on your site. |
| 5 | * Jumpstart Description: Adds a button to your post and page editors, allowing you to build simple forms to help visitors stay in touch. |
| 6 | * Sort Order: 15 |
| 7 | * Recommendation Order: 14 |
| 8 | * First Introduced: 1.3 |
| 9 | * Requires Connection: No |
| 10 | * Auto Activate: Yes |
| 11 | * Module Tags: Other |
| 12 | * Feature: Writing, Jumpstart |
| 13 | * Additional Search Queries: contact, form, grunion, feedback, submission |
| 14 | */ |
| 15 | |
| 16 | include dirname( __FILE__ ) . '/contact-form/grunion-contact-form.php'; |
| 17 | /* |
| 18 | * Filters if the new Contact Form Editor View should be used. |
| 19 | * |
| 20 | * A temporary filter to disable the new Editor View for the older UI. |
| 21 | * Please note this filter and the old UI will be removed in the future. |
| 22 | * Expected to be removed in Jetpack 5.8 or if a security issue merits removing the old code sooner. |
| 23 | * |
| 24 | * @since 5.2.0 |
| 25 | * |
| 26 | * @param boolean $view Use new Editor View. Default true. |
| 27 | */ |
| 28 | if ( is_admin() && apply_filters( 'tmp_grunion_allow_editor_view', true ) ) { |
| 29 | require_once dirname( __FILE__ ) . '/contact-form/grunion-editor-view.php'; |
| 30 | } |
| 31 |