mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00:00
Docs: Promote many bool types to true or false where only that value is used.
See #51800 git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -127,8 +127,8 @@ function add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1
|
||||
*
|
||||
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
|
||||
*
|
||||
* @param string $tag The name of the filter hook.
|
||||
* @param callable|bool $function_to_check Optional. The callback to check for. Default false.
|
||||
* @param string $tag The name of the filter hook.
|
||||
* @param callable|false $function_to_check Optional. The callback to check for. Default false.
|
||||
* @return false|int If $function_to_check is omitted, returns boolean for whether the hook has
|
||||
* anything registered. When checking a specific function, the priority of that
|
||||
* hook is returned, or false if the function is not attached. When using the
|
||||
@@ -300,8 +300,8 @@ function remove_filter( $tag, $function_to_remove, $priority = 10 ) {
|
||||
*
|
||||
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
|
||||
*
|
||||
* @param string $tag The filter to remove hooks from.
|
||||
* @param int|bool $priority Optional. The priority number to remove. Default false.
|
||||
* @param string $tag The filter to remove hooks from.
|
||||
* @param int|false $priority Optional. The priority number to remove. Default false.
|
||||
* @return true True when finished.
|
||||
*/
|
||||
function remove_all_filters( $tag, $priority = false ) {
|
||||
@@ -560,8 +560,8 @@ function do_action_ref_array( $tag, $args ) {
|
||||
*
|
||||
* @see has_filter() has_action() is an alias of has_filter().
|
||||
*
|
||||
* @param string $tag The name of the action hook.
|
||||
* @param callable|bool $function_to_check Optional. The callback to check for. Default false.
|
||||
* @param string $tag The name of the action hook.
|
||||
* @param callable|false $function_to_check Optional. The callback to check for. Default false.
|
||||
* @return bool|int If $function_to_check is omitted, returns boolean for whether the hook has
|
||||
* anything registered. When checking a specific function, the priority of that
|
||||
* hook is returned, or false if the function is not attached. When using the
|
||||
@@ -596,8 +596,8 @@ function remove_action( $tag, $function_to_remove, $priority = 10 ) {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string $tag The action to remove hooks from.
|
||||
* @param int|bool $priority The priority number to remove them from. Default false.
|
||||
* @param string $tag The action to remove hooks from.
|
||||
* @param int|false $priority The priority number to remove them from. Default false.
|
||||
* @return true True when finished.
|
||||
*/
|
||||
function remove_all_actions( $tag, $priority = false ) {
|
||||
|
||||
Reference in New Issue
Block a user