WP_Hook::valid() WordPress Method
The WP_Hook::valid() method is used to check whether a hook has any registered callbacks. This can be useful for debugging purposes.
WP_Hook::valid() #
Contents
Source
File: wp-includes/class-wp-hook.php
public function valid() { return key( $this->callbacks ) !== null; }
Expand full source codeCollapse full source codeView on TracView on GitHub