MailPoet\EmailEditor\Engine\Renderer\ContentRenderer
Blocks_Registry::has_block_renderer()
Checks if block renderer is registered.
Method of the class: Blocks_Registry{}
No Hooks.
Return
true|false
.
Usage
$Blocks_Registry = new Blocks_Registry(); $Blocks_Registry->has_block_renderer( $block_name ): bool;
- $block_name(string) (required)
- Block name.
Blocks_Registry::has_block_renderer() Blocks Registry::has block renderer code WC 9.8.2
public function has_block_renderer( string $block_name ): bool { return isset( $this->block_renderers_map[ $block_name ] ); }