Automattic\WooCommerce\Blocks\BlockTypes
AbstractBlock::get_block_type_render_callback()
Get the render callback for this block type.
Dynamic blocks should return a callback, for example, return [$this,'render'];
Method of the class: AbstractBlock{}
No Hooks.
Return
callable|null;
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_block_type_render_callback();
Notes
- See: $this->register_block_type()
AbstractBlock::get_block_type_render_callback() AbstractBlock::get block type render callback code WC 9.4.2
protected function get_block_type_render_callback() { return [ $this, 'render_callback' ]; }