wp_interactivity_get_element()
Returns an array representation of the current element being processed.
The function should be used only during directive processing.
Хуков нет.
Возвращает
Массив{attributes:
. array<string, string|bool>}|null Current element.
Использование
wp_interactivity_get_element(): ?array;
Список изменений
С версии 6.7.0 | Введена. |
Код wp_interactivity_get_element() wp interactivity get element WP 6.7.1
function wp_interactivity_get_element(): ?array { return wp_interactivity()->get_element(); }