Automattic\WooCommerce\Blocks\BlockTypes

AtomicBlock{}WC 1.0

AtomicBlock class.

Хуков нет.

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

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

Методы

  1. protected get_block_type_editor_script( $key = null )
  2. protected get_block_type_editor_style()
  3. protected get_block_type_script( $key = null )
  4. protected get_block_type_style()

Код AtomicBlock{} WC 6.8.0

class AtomicBlock extends AbstractBlock {
	/**
	 * Get the editor script data for this block type.
	 *
	 * @param string $key Data to get, or default to everything.
	 * @return null
	 */
	protected function get_block_type_editor_script( $key = null ) {
		return null;
	}

	/**
	 * Get the editor style handle for this block type.
	 *
	 * @return null
	 */
	protected function get_block_type_editor_style() {
		return null;
	}

	/**
	 * Get the frontend script handle for this block type.
	 *
	 * @param string $key Data to get, or default to everything.
	 * @return null
	 */
	protected function get_block_type_script( $key = null ) {
		return null;
	}

	/**
	 * Get the frontend style handle for this block type.
	 *
	 * @return null
	 */
	protected function get_block_type_style() {
		return null;
	}
}