WordPress at a glance
function is not described

WP_Hook::has_filters() public WP 4.7.0

Checks if any callbacks have been registered for this hook.

{} It's a method of the class: WP_Hook{}

No Hooks.

Return

true/false. True if callbacks have been registered for the current hook, otherwise false.

Usage

$WP_Hook = new WP_Hook();
$WP_Hook->has_filters();

Changelog

Since 4.7.0 Introduced.

Code of WP_Hook::has_filters() WP 5.5.1

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