Automattic\WooCommerce\Blocks\BlockTypes
ReviewsByProduct::register_block_type() public WC 1.0
Registers the block type with WordPress.
{} It's a method of the class: ReviewsByProduct{}
No Hooks.
Return
Null. Nothing.
Usage
$ReviewsByProduct = new ReviewsByProduct(); $ReviewsByProduct->register_block_type();
Code of ReviewsByProduct::register_block_type() ReviewsByProduct::register block type WC 5.0.0
public function register_block_type() {
register_block_type(
$this->namespace . '/' . $this->block_name,
array(
'render_callback' => array( $this, 'render' ),
'editor_script' => 'wc-' . $this->block_name,
'editor_style' => 'wc-block-editor',
'style' => 'wc-block-style',
'script' => 'wc-' . $this->block_name . '-frontend',
'supports' => [],
)
);
}