Automattic\WooCommerce\Blocks\BlockTypes

PageContentWrapper{}WC 1.0

Used in templates to wrap page content. Allows content to be populated at template level.

Хуков нет.

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

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

Методы

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

Код PageContentWrapper{} WC 9.5.1

class PageContentWrapper extends AbstractBlock {
	/**
	 * Block name.
	 *
	 * @var string
	 */
	protected $block_name = 'page-content-wrapper';

	/**
	 * It isn't necessary to register block assets.
	 *
	 * @param string $key Data to get, or default to everything.
	 * @return array|string|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;
	}
}