Skip to content

Commit

Permalink
updating uploads helper
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Jan 11, 2024
1 parent fb555f5 commit e86ff55
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Blocks/UtilsBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace EightshiftFormsUtils\Blocks;

use EightshiftFormsUtils\Helpers\UtilsHooksHelper;
use EightshiftLibs\Blocks\AbstractBlocks;

/**
Expand All @@ -28,5 +29,18 @@ public function register(): void
// Register all custom blocks.
\add_action('init', [$this, 'getBlocksDataFullRaw'], 10);
\add_action('init', [$this, 'registerBlocks'], 11);

// Register all custom blocks from add-ons.
\add_filter(UtilsHooksHelper::getFilterName(['blocks', 'allowedBlocks']), [$this, 'getAddonBlocks']);
}

/**
* Get add-on blocks list.
*
* @return array<int, string> List of blocks.
*/
public function getAddonBlocks(): array
{
return [];
}
}

0 comments on commit e86ff55

Please sign in to comment.