Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | n/a |
0 / 0 |
|
| Automattic\Jetpack\Extensions\PaymentsIntro\register_block | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * Payments Intro Block. |
| 4 | * |
| 5 | * Acts as a menu for select payments blocks |
| 6 | * |
| 7 | * @since 10.x |
| 8 | * |
| 9 | * @package automattic/jetpack |
| 10 | */ |
| 11 | |
| 12 | namespace Automattic\Jetpack\Extensions\PaymentsIntro; |
| 13 | |
| 14 | use Automattic\Jetpack\Blocks; |
| 15 | |
| 16 | if ( ! defined( 'ABSPATH' ) ) { |
| 17 | exit( 0 ); |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Registers the block for use in Gutenberg |
| 22 | * This is done via an action so that we can disable |
| 23 | * registration if we need to. |
| 24 | */ |
| 25 | function register_block() { |
| 26 | Blocks::jetpack_register_block( __DIR__ ); |
| 27 | } |
| 28 | add_action( 'init', __NAMESPACE__ . '\register_block' ); |