WordPress at a glance
function is not described

WP_Hook::valid() public WP 4.7.0

Checks if current position is valid.

{} It's a method of the class: WP_Hook{}

No Hooks.

Return

true/false.

Usage

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

Changelog

Since 4.7.0 Introduced.

Code of WP_Hook::valid() WP 5.5.3

<?php
public function valid() {
	return key( $this->callbacks ) !== null;
}