View Categories

What Are The Custom Hooks & Filter For Essential Blocks For Gutenberg Blocks?

1 min read

Custom hooks and filters can help you modify or extend any plugin. In Essential Blocks, we bring you custom hooks and filters that you can use to modify this plugin according to your needs. 

Custom Hooks & Filter For Essential Blocks For Gutenberg Blocks #

In the following guide, we will share all the custom hooks which you need to extend the features of Essential Blocks for Gutenberg.

EB Post Grid Block #

In some cases, you may want to add a custom filter to the EB Post Grid Block. Here are the necessary filters to extend the block:

Post Grid Filter #

eb_post_grid_query_results 

(This filer will allow you to modify the query results)

Parameter:  #
$post (array)

(Post list)

Return:  #
$post (array)

(Post list)

Example #

function eb_post_grid_query_filter($query) {
//Your code here
return $query; 
}
add_filter('eb_post_grid_query_results', 'eb_post_grid_query_filter');

Post Carousel Block #

If you want to add a custom filter to the EB Post Carousel Block. Here are the necessary filters to extend the block:

Post Carousel Filter #

eb_post_carousel_query_results 

(This filer will allow you to modify the query results)

Parameter:  #
$post (array)

(Post list)

Return:  #
$post (array)

(Post list)

Example #

function eb_post_carousel_query_filter($query) {
//Your code here
return $query; 
}
add_filter('eb_post_carousel_query_results', 'eb_post_carousel_query_filter');

Using the custom hooks and filters you can easily extend Essential Blocks as you want. 

Getting stuck? Feel free to contact our support for further assistance.

Powered by BetterDocs