@@ -95,7 +95,7 @@ function add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1
9595 * @global array $wp_filter Stores all of the filters
9696 *
9797 * @param string $tag The name of the filter hook.
98- * @param bool| callback $function_to_check Optional. The callback to check for. Default false.
98+ * @param callback|bool $function_to_check Optional. The callback to check for. Default false.
9999 * @return mixed If $function_to_check is omitted, returns boolean for whether the hook has anything registered.
100100 * When checking a specific function, the priority of that hook is returned, or false if the function is not attached.
101101 * When using the $function_to_check argument, this function may return a non-boolean value that evaluates to false
@@ -298,7 +298,7 @@ function remove_filter( $tag, $function_to_remove, $priority = 10 ) {
298298 * @since 2.7.0
299299 *
300300 * @param string $tag The filter to remove hooks from.
301- * @param bool| int $priority Optional. The priority number to remove. Default false.
301+ * @param int|bool $priority Optional. The priority number to remove. Default false.
302302 * @return bool True when finished.
303303 */
304304function remove_all_filters ( $ tag , $ priority = false ) {
@@ -570,7 +570,7 @@ function do_action_ref_array($tag, $args) {
570570 * @see has_filter() has_action() is an alias of has_filter().
571571 *
572572 * @param string $tag The name of the action hook.
573- * @param bool| callback $function_to_check Optional. The callback to check for. Default false.
573+ * @param callback|bool $function_to_check Optional. The callback to check for. Default false.
574574 * @return mixed If $function_to_check is omitted, returns boolean for whether the hook has anything registered.
575575 * When checking a specific function, the priority of that hook is returned, or false if the function is not attached.
576576 * When using the $function_to_check argument, this function may return a non-boolean value that evaluates to false
@@ -604,7 +604,7 @@ function remove_action( $tag, $function_to_remove, $priority = 10 ) {
604604 * @since 2.7.0
605605 *
606606 * @param string $tag The action to remove hooks from.
607- * @param bool| int $priority The priority number to remove them from. Default false.
607+ * @param int|bool $priority The priority number to remove them from. Default false.
608608 * @return bool True when finished.
609609 */
610610function remove_all_actions ($ tag , $ priority = false ) {
0 commit comments