Automattic\WooCommerce\Blocks\BlockTypes\Accordion
AccordionPanel{}
AccordionPanel class.
Хуков нет.
Использование
$AccordionPanel = new AccordionPanel(); // use class methods
Методы
- protected get_block_type_script( $key = null )
- protected get_block_type_style()
Код AccordionPanel{} AccordionPanel{} WC 9.8.5
class AccordionPanel extends AbstractBlock { /** * Block name. * * @var string */ protected $block_name = 'accordion-panel'; /** * Get the frontend style handle for this block type. * * @return string[]|null */ protected function get_block_type_style() { return null; } /** * 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|null */ protected function get_block_type_script( $key = null ) { return null; } }