Automattic\WooCommerce\Blocks\BlockTypes
ReviewsByProduct{} WC 1.0
ReviewsByProduct class.
Хуков нет.
Возвращает
null
. Ничего.
Использование
$ReviewsByProduct = new ReviewsByProduct(); // use class methods
Методы
Код ReviewsByProduct{} ReviewsByProduct{} WC 5.2.2
class ReviewsByProduct extends AbstractBlock {
/**
* Block name.
*
* @var string
*/
protected $block_name = 'reviews-by-product';
/**
* Get the frontend script handle for this block type.
*
* @see $this->register_block_type()
* @param string $key Data to get, or default to everything.
* @return array|string
*/
protected function get_block_type_script( $key = null ) {
$script = [
'handle' => 'wc-reviews-frontend',
'path' => $this->asset_api->get_block_asset_build_path( 'reviews-frontend' ),
'dependencies' => [],
];
return $key ? $script[ $key ] : $script;
}
}