Automattic\WooCommerce\Blocks\BlockTypes\Accordion

AccordionPanel{}WC 1.0

AccordionPanel class.

Хуков нет.

Использование

$AccordionPanel = new AccordionPanel();
// use class methods

Методы

  1. protected get_block_type_script( $key = null )
  2. protected get_block_type_style()

Код 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;
	}
}