WP_Hook::valid()

Checks if current position is valid.


Return Return

(bool) Whether the current position is valid.


Top ↑

Source Source

File: wp-includes/class-wp-hook.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.