Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
wp-content
/
plugins
/
jetpack
/
extensions
/
blocks
/
simple-payments
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Pay with PayPal block (aka Simple Payments). * * @since 9.0.0 * * @package automattic/jetpack */ use Automattic\Jetpack\PaypalPayments\SimplePayments\Block; // Register the block add_action( 'init', array( Block::class, 'register_block' ), 9 ); // Disable AMP for posts with the block. add_filter( 'amp_skip_post', array( Block::class, 'amp_skip_post' ), 10, 3 ); // Load scripts for the editing interface add_action( 'enqueue_block_editor_assets', array( Block::class, 'load_editor_scripts' ), 9 ); // Load styles in the editor iframe context if ( is_admin() ) { add_action( 'enqueue_block_assets', array( Block::class, 'load_editor_styles' ), 9 ); }