Hi,
I’ve sadly discovered https://generatepress.com/forums/topic/using-hook-from-custom-wp-block/ that we can’t use HOOK for block:
* neither calling a block (with datas matched to a page) into a hook,
* or calling a hook into a block (doing the hook only when the Block is called : when the page contained the Block is loaded).
My plan was to create custom WP Gutenberg Block.
Then select this block & complete data for a selected page.
And the be able to use hook into this block..
The idea was to position this block into the header using hook (as I use to do with GP Hook element or Hook php + html.).
My question is: is there any plan to add this feature in next versions? is there any other way to call dedicated data of a WP Block that are saved into a page? : I want to call in php datas of a WP block that I’ve saved into a page.
thanks for your help!
bye ๐