Нема описа

contact-form.php 1.2KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Module Name: Contact Form
  4. * Module Description: Add a customizable contact form to any post or page using the Jetpack Form Block.
  5. * Sort Order: 15
  6. * Recommendation Order: 14
  7. * First Introduced: 1.3
  8. * Requires Connection: No
  9. * Auto Activate: Yes
  10. * Module Tags: Other
  11. * Feature: Writing
  12. * 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
  13. */
  14. require_once dirname( __FILE__ ) . '/contact-form/grunion-contact-form.php';
  15. /*
  16. * Filters if the new Contact Form Editor View should be used.
  17. *
  18. * A temporary filter to disable the new Editor View for the older UI.
  19. * Please note this filter and the old UI will be removed in the future.
  20. * Expected to be removed in Jetpack 5.8 or if a security issue merits removing the old code sooner.
  21. *
  22. * @since 5.2.0
  23. *
  24. * @param boolean $view Use new Editor View. Default true.
  25. */
  26. if ( is_admin() && apply_filters( 'tmp_grunion_allow_editor_view', true ) ) {
  27. require_once dirname( __FILE__ ) . '/contact-form/grunion-editor-view.php';
  28. }