GC_Hook::has_filters()

最后更新于:2021-11-27 21:22:38

GC_Hook::has_filters()

Checks if any callbacks have been registered for this hook.

响应

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

源文件

文件: gc-includes/class-gc-hook.php

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

		return false;
	}