AudioBlock.php
9 months ago
MediaHubBlock.php
9 months ago
PopupBlock.php
10 months ago
PopupMediaBlock.php
7 months ago
PopupTriggerBlock.php
10 months ago
ReusableEditBlock.php
9 months ago
ReusableVideoBlock.php
2 weeks ago
SelfHostedBlock.php
9 months ago
VimeoBlock.php
9 months ago
YouTubeBlock.php
9 months ago
ReusableEditBlock.php
35 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Reusable Video Block Class |
| 4 | * |
| 5 | * @package PrestoPlayer\Blocks |
| 6 | */ |
| 7 | |
| 8 | namespace PrestoPlayer\Blocks; |
| 9 | |
| 10 | /** |
| 11 | * Reusable Edit Block Class |
| 12 | */ |
| 13 | class ReusableEditBlock { |
| 14 | |
| 15 | /** |
| 16 | * Register Block |
| 17 | * |
| 18 | * @return void |
| 19 | */ |
| 20 | public function register() { |
| 21 | add_action( 'init', array( $this, 'registerBlockType' ) ); |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Register the block type. |
| 26 | * |
| 27 | * @return void |
| 28 | */ |
| 29 | public function registerBlockType() { |
| 30 | register_block_type( |
| 31 | PRESTO_PLAYER_PLUGIN_DIR . 'src/admin/blocks/blocks/reusable-edit', |
| 32 | ); |
| 33 | } |
| 34 | } |
| 35 |