wp_interactivity_get_element() │ WP 6.7.0

Returns an array representation of the current element being processed.

The function should be used only during directive processing.

Хуков нет.

Возвращает

array{attributes: array<string, string|bool>}|null. Current element.

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

wp_interactivity_get_element(): ?array;

Список изменений

С версии 6.7.0 Введена.

Код wp_interactivity_get_element() WP 7.1.3

function wp_interactivity_get_element(): ?array {
	return wp_interactivity()->get_element();
}