Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
wp-content
/
plugins
/
jetpack
/
extensions
/
blocks
/
contact-form
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Contact Form Block. * * @package automattic/jetpack */ namespace Automattic\Jetpack\Extensions\Contact_Form; // Register the block add_action( 'init', array( Contact_Form_Block::class, 'register_block' ), 9 ); // Load scripts for the editing interface add_action( 'enqueue_block_editor_assets', array( Contact_Form_Block::class, 'load_editor_scripts' ), 9 ); // Load styles in the editor iframe context if ( is_admin() ) { add_action( 'enqueue_block_assets', array( Contact_Form_Block::class, 'load_editor_styles' ), 9 ); }