SBR_Modern_Feed_Block.php
3 weeks ago
SB_Recommended_Blocks.php
3 weeks ago
SB_Reviews_Blocks.php
3 weeks ago
SB_Recommended_Blocks.php
48 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * SB_Recommended_Blocks |
| 5 | * |
| 6 | * @since 2.1 |
| 7 | */ |
| 8 | |
| 9 | namespace SmashBalloon\Reviews\Common\Admin\Blocks; |
| 10 | |
| 11 | use Smashballoon\Stubs\Services\ServiceProvider; |
| 12 | use SmashBalloon\Reviews\Vendor\Smashballoon\Framework\Packages\Blocks\RecommendedBlocks; |
| 13 | |
| 14 | // Exit if accessed directly |
| 15 | if (!defined('ABSPATH')) { |
| 16 | exit; |
| 17 | } |
| 18 | |
| 19 | class SB_Recommended_Blocks extends ServiceProvider |
| 20 | { |
| 21 | /** |
| 22 | * Register Reviews Block |
| 23 | * |
| 24 | * @return void |
| 25 | */ |
| 26 | public function register() |
| 27 | { |
| 28 | add_action( |
| 29 | 'init', |
| 30 | [ |
| 31 | $this, |
| 32 | 'register_blocks' |
| 33 | ] |
| 34 | ); |
| 35 | } |
| 36 | |
| 37 | /** |
| 38 | * Register Recommended Blocks |
| 39 | * |
| 40 | * @return void |
| 41 | */ |
| 42 | public function register_blocks() |
| 43 | { |
| 44 | $recommended_blocks = new RecommendedBlocks(); |
| 45 | $recommended_blocks->setup(); |
| 46 | } |
| 47 | } |
| 48 |