Automattic\WooCommerce\Admin\BlockTemplates
BlockInterface{}
Устарела с версии 10.9.0 Block template extension APIs were deprecated. The block templates API was removed in 11.0.0 with no replacement.. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
Removed block templates block interface.
Хуков нет.
Использование
$BlockInterface = new BlockInterface(); // use class methods
Методы
Нет Методов у класса.Список изменений
| Устарела с 10.9.0 | Block template extension APIs were deprecated. The block templates API was removed in 11.0.0 with no replacement. |
Код BlockInterface{} BlockInterface{} WC 11.0.1
interface BlockInterface {
/**
* Key for the block name in the block configuration.
*/
public const NAME_KEY = 'blockName';
/**
* Key for the block ID in the block configuration.
*/
public const ID_KEY = 'id';
/**
* Key for the internal order in the block configuration.
*/
public const ORDER_KEY = 'order';
/**
* Key for the block attributes in the block configuration.
*/
public const ATTRIBUTES_KEY = 'attributes';
/**
* Key for the block hide conditions in the block configuration.
*/
public const HIDE_CONDITIONS_KEY = 'hideConditions';
/**
* Key for the block disable conditions in the block configuration.
*/
public const DISABLE_CONDITIONS_KEY = 'disableConditions';
}