W3cubDocs

/WordPress

WP_Hook::valid()

Source

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

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_hook/valid