kollapsminoriteten/wp-content/plugins/jetpack/extensions/blocks/paypal-payment-buttons/paypal-payment-buttons.php

26 lines
641 B
PHP
Raw Permalink Normal View History

2025-08-27 08:44:30 +02:00
<?php
/**
* PayPal Payment Buttons block.
*
* @since 14.9
*
* @package automattic/jetpack
*/
use Automattic\Jetpack\PaypalPayments\PayPal_Payment_Buttons;
2025-12-12 13:13:07 +01:00
if ( ! defined( 'ABSPATH' ) ) {
exit( 0 );
}
2025-08-27 08:44:30 +02:00
// 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 );
}