contact-form.php 1.1 KB

123456789101112131415161718192021222324252627282930
  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. require_once dirname( __FILE__ ) . '/contact-form/grunion-contact-form.php';
  16. /*
  17. * Filters if the new Contact Form Editor View should be used.
  18. *
  19. * A temporary filter to disable the new Editor View for the older UI.
  20. * Please note this filter and the old UI will be removed in the future.
  21. * Expected to be removed in Jetpack 5.8 or if a security issue merits removing the old code sooner.
  22. *
  23. * @since 5.2.0
  24. *
  25. * @param boolean $view Use new Editor View. Default true.
  26. */
  27. if ( is_admin() && apply_filters( 'tmp_grunion_allow_editor_view', true ) ) {
  28. require_once dirname( __FILE__ ) . '/contact-form/grunion-editor-view.php';
  29. }