Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/wp-includes/class-wp-hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ public function has_filter( $hook_name = '', $callback = false, $priority = fals
}

/**
* Checks if any callbacks have been registered for this hook.
* Checks if any callbacks have been registered for the filter hook.
*
* @since 4.7.0
*
* @return bool True if callbacks have been registered for the current hook, otherwise false.
* @return bool True if callbacks have been registered for the filter hook, otherwise false.
*/
public function has_filters() {
foreach ( $this->callbacks as $callbacks ) {
Expand All @@ -279,7 +279,7 @@ public function has_filters() {
}

/**
* Removes all callbacks from the current filter.
* Removes all callbacks registered on the filter hook.
*
* @since 4.7.0
*
Expand Down
Loading