WP_Hook::currentpublicWP 4.7.0ReturnTypeWillChange

Returns the current element.

Method of the class: WP_Hook{}

No Hooks.

Returns

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.9

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