| @@ -1,0 +1,12 @@ | ||
| 1 | +<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName | |
| 2 | + | |
| 3 | +// phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed -- TODO: Move classes to appropriately-named class files. | |
| 4 | + | |
| 5 | +use Automattic\Jetpack\Paypal_Payments\Simple_Payments; | |
| 6 | + | |
| 7 | +// Disable direct access/execution to/of the widget code. | |
| 8 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | + exit( 0 ); | |
| 10 | +} | |
| 11 | + | |
| 12 | +add_action( 'widgets_init', array( Simple_Payments::class, 'register_widget_simple_payments' ) ); | |