AbstractTemplateCompatibility::set_hook_data()protectedWC 1.0

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() WC 7.7.2

abstract protected function set_hook_data();