This commit is contained in:
2026-07-02 15:54:39 -06:00
commit 9883323161
17470 changed files with 4470592 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
/**
* PayPal Payment Buttons block.
*
* @since 14.9
*
* @package automattic/jetpack
*/
use Automattic\Jetpack\PaypalPayments\PayPal_Payment_Buttons;
if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}
// Register the block.
add_action( 'init', array( PayPal_Payment_Buttons::class, 'register_block' ), 9 );
// Load scripts for the editing interface
add_action( 'enqueue_block_editor_assets', array( PayPal_Payment_Buttons::class, 'load_editor_scripts' ), 9 );
// Load styles in the editor iframe context
if ( is_admin() ) {
add_action( 'enqueue_block_assets', array( PayPal_Payment_Buttons::class, 'load_editor_styles' ), 9 );
}