WP_Hook::key()publicWP 4.7.0ReturnTypeWillChange

Returns the key of the current element.

Method of the class: WP_Hook{}

No Hooks.

Return

Mixed. Returns current priority on success, or NULL on failure

Usage

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

Changelog

Since 4.7.0 Introduced.

WP_Hook::key() code WP 6.5.2

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