Skip to content

Commit 8188b42

Browse files
committed
Clarify priority param description
1 parent bd6fdbc commit 8188b42

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/wp-includes/class-wp-hook.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ public function remove_filter( $hook_name, $callback, $priority ) {
229229
* @param callable|string|array|false $callback Optional. The callback to check for.
230230
* This method can be called unconditionally to speculatively check
231231
* a callback that may or may not exist. Default false.
232-
* @param int|false $priority Whether to check for a filter at a specific priority.
232+
* @param int|false $priority Optional. The specific priority at which to check for the callback.
233+
* Default false.
233234
* @return bool|int If `$callback` is omitted, returns boolean for whether the hook has
234235
* anything registered. When checking a specific function, the priority
235236
* of that hook is returned, or false if the function is not attached.

src/wp-includes/plugin.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ function apply_filters_ref_array( $hook_name, $args ) {
275275
* @param callable|string|array|false $callback Optional. The callback to check for.
276276
* This function can be called unconditionally to speculatively check
277277
* a callback that may or may not exist. Default false.
278-
* @param int|false $priority Whether to check for a filter at a specific priority.
278+
* @param int|false $priority Optional. The specific priority at which to check for the callback.
279+
* Default false.
279280
* @return bool|int If `$callback` is omitted, returns boolean for whether the hook has
280281
* anything registered. When checking a specific function, the priority
281282
* of that hook is returned, or false if the function is not attached.
@@ -586,7 +587,8 @@ function do_action_ref_array( $hook_name, $args ) {
586587
* @param callable|string|array|false $callback Optional. The callback to check for.
587588
* This function can be called unconditionally to speculatively check
588589
* a callback that may or may not exist. Default false.
589-
* @param int|false $priority Whether to check for a filter at a specific priority.
590+
* @param int|false $priority Optional. The specific priority at which to check for the callback.
591+
* Default false.
590592
* @return bool|int If `$callback` is omitted, returns boolean for whether the hook has
591593
* anything registered. When checking a specific function, the priority
592594
* of that hook is returned, or false if the function is not attached.

0 commit comments

Comments
 (0)