Automattic\WooCommerce\Blocks\BlockTypes
AllReviews::enqueue_scripts() protected WC 1.0
Register/enqueue scripts used for this block.
{} It's a method of the class: AllReviews{}
No Hooks.
Return
Null. Nothing.
Usage
// protected - for code of main (parent) or child class $result = $this->enqueue_scripts( $attributes );
- $attributes(array)
- Any attributes that currently are available from the block.
Code of AllReviews::enqueue_scripts() AllReviews::enqueue scripts WC 5.0.0
protected function enqueue_scripts( array $attributes = [] ) {
Assets::register_block_script( 'reviews-frontend' );
}