This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Has block function which searches as well in reusable blocks. | |
* | |
* Extends functionality of core's has_block (https://developer.wordpress.org/reference/functions/has_block/) | |
* | |
* @param mixed $block_name Full Block type to look for. | |
* @return bool | |
*/ | |
function enhanced_has_block($searched_block_name) |