Automattic\WooCommerce\Blocks\Templates
AbstractTemplateCompatibility::set_hook_data()
The hook data to inject to the rendered content of blocks. This also contains hooked functions that will be removed by remove_default_hooks.
The array format: [ <hook-name> => [
block_name => <block-name>, position => before|after, hooked => [ <function-name> => <priority>, ... ],
], ] Where:
- hook-name is the name of the hook that will be replaced.
- block-name is the name of the block that will replace the hook.
- position is the position of the block relative to the hook.
- hooked is an array of functions hooked to the hook that will be replaced. The key is the function name and the value is the priority.
Метод класса: AbstractTemplateCompatibility{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->set_hook_data();
Код AbstractTemplateCompatibility::set_hook_data() AbstractTemplateCompatibility::set hook data WC 7.7.2
abstract protected function set_hook_data();