Skip to content

Commit

Permalink
update: code reorganized
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahcssiqueira committed Jan 11, 2024
1 parent 86dcc27 commit 2b6eaf7
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions wxyz-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,19 @@
defined( 'ABSPATH' ) || exit;

/**
* Block X
* Include and instantiate Block classes
*/
require_once __DIR__ . '/inc/class-block-x.php';
use WXYZBlocks\Inc\BlockX;
new BlockX();

/**
* Block Y
*/
require_once __DIR__ . '/inc/class-block-y.php';
use WXYZBlocks\Inc\BlockY;
new BlockY();

/**
* Block W
*/
require_once __DIR__ . '/inc/class-block-w.php';
use WXYZBlocks\Inc\BlockW;
new BlockW();

/**
* Block Z
*/
require_once __DIR__ . '/inc/class-block-z.php';

use WXYZBlocks\Inc\BlockX;
use WXYZBlocks\Inc\BlockY;
use WXYZBlocks\Inc\BlockW;
use WXYZBlocks\Inc\BlockZ;

new BlockX();
new BlockY();
new BlockW();
new BlockZ();

0 comments on commit 2b6eaf7

Please sign in to comment.