WP_Hook::current()publicWP 4.7.0ReturnTypeWillChange

Returns the current element.

Method of the class: WP_Hook{}

No Hooks.

Return

Array. Of callbacks at current priority.

Usage

$WP_Hook = new WP_Hook();
$WP_Hook->current();

Changelog

Since 4.7.0 Introduced.

WP_Hook::current() code WP 6.4.3

public function current() {
	return current( $this->callbacks );
}