WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
класс не описан

Automattic\WooCommerce\Blocks\Integrations

IntegrationInterface{} WC 1.0

Integration.Interface

Integrations must use this interface when registering themselves with blocks,

Хуков нет.

Возвращает

null. Ничего.

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

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

Методы

  1. get_editor_script_handles()
  2. get_name()
  3. get_script_data()
  4. get_script_handles()
  5. initialize()

Код IntegrationInterface{} WC 5.4.1

<?php
interface IntegrationInterface {
	/**
	 * The name of the integration.
	 *
	 * @return string
	 */
	public function get_name();

	/**
	 * When called invokes any initialization/setup for the integration.
	 */
	public function initialize();

	/**
	 * Returns an array of script handles to enqueue in the frontend context.
	 *
	 * @return string[]
	 */
	public function get_script_handles();

	/**
	 * Returns an array of script handles to enqueue in the editor context.
	 *
	 * @return string[]
	 */
	public function get_editor_script_handles();

	/**
	 * An array of key, value pairs of data made available to the block on the client side.
	 *
	 * @return array
	 */
	public function get_script_data();
}