WP_Hook::key │ public │ WP 4.7.0 │ ReturnTypeWillChange

Returns the key of the current element.

Method of the class: WP_Hook{}

No Hooks.

Returns

int|null. 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 7.1.4

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