Checks if any callbacks have been registered for this hook.

Return Return

(bool) True if callbacks have been registered for the current hook, otherwise false.

Top ↑

Source Source

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

	public function has_filters() {
		foreach ( $this->callbacks as $callbacks ) {
			if ( $callbacks ) {
				return true;
		return false;

Top ↑

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.