PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
jetpack / extensions / blocks / contact-form / contact-form.php

contact-form.php in Jetpack – WP Security, Backup, Speed, & Growth 16.3-a.7, at extensions/blocks/contact-form/contact-form.php

26 lines 774 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Contact Form Block.
4 *
5 * @package automattic/jetpack
6 */
7
8 namespace Automattic\Jetpack\Extensions\Contact_Form;
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit( 0 );
12 }
13
14 /*
15 * Register the block as a fallback when loaded via the Blocks module.
16 *
17 * The Forms package registers this block when the Forms (contact-form) module is active.
18 * When only the Blocks module is active, this ensures the block is still registered so
19 * admins see a nudge to activate the Forms module.
20 *
21 * Contact_Form_Block::register_block() calls can_manage_block() internally,
22 * and Blocks::jetpack_register_block() is a no-op if the block is already registered,
23 * so double-registration is not possible.
24 */
25 add_action( 'init', array( Contact_Form_Block::class, 'register_block' ), 9 );
26