diff --git a/includes/html-snippet-block.php b/includes/html-snippet-block.php index 455f3af..fd95c7d 100644 --- a/includes/html-snippet-block.php +++ b/includes/html-snippet-block.php @@ -41,6 +41,16 @@ public static function register_block() ) ); + add_filter( + 'wsu_allowed_blocks_filter', function ( $blocks ) { + if (!in_array(self::$block_name, $blocks, true)) { + array_push($blocks, self::$block_name); + } + + return $blocks; + } + ); + } diff --git a/wsuwp-html-snippets.php b/wsuwp-html-snippets.php index 768209c..e4e9cbd 100755 --- a/wsuwp-html-snippets.php +++ b/wsuwp-html-snippets.php @@ -1,7 +1,7 @@