WP_Hook::currentpublicWP 4.7.0ReturnTypeWillChange

Returns the current element.

Method of the class: WP_Hook{}

No Hooks.

Returns

array|false. Array of callbacks at current priority, false if there are no more elements.

Usage

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

Changelog

Since 4.7.0 Introduced.

WP_Hook::current() code WP 7.1

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