Skip to content

Commit

Permalink
added add_collection method to main class
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Nov 25, 2024
1 parent 2c2a9f2 commit 129dbf1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lazy-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,18 @@ public function add_block( $data ) {
return $this->blocks()->add_block( $data );
}

/**
* Add lazyblocks block collection.
*
* This method is does nothing in Free plugin,
* the actual implementation is in Pro plugin.
*
* @param array $data - collection data.
*/
public function add_collection( $data ) {
do_action( 'lzb/add_collection', $data );
}

/**
* Add lazyblocks template.
*
Expand Down

0 comments on commit 129dbf1

Please sign in to comment.