WP_Hook::valid()
Checks if current position is valid.
Return
(bool) Whether the current position is valid.
Source
File: wp-includes/class-wp-hook.php
public function valid() { return key( $this->callbacks ) !== null; }
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_hook/valid