Changeset 28888
- Timestamp:
- 06/29/2014 08:41:38 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/plugin.php
r28886 r28888 71 71 * @param string $tag The name of the filter to hook the $function_to_add callback to. 72 72 * @param callback $function_to_add The callback to be run when the filter is applied. 73 * @param int $priority (optional) The order in which the functions associated with a particular action are executed. Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action. 74 * Default 10. 75 * @param int $accepted_args (optional) The number of arguments the function accepts. 76 * Default 1. 73 * @param int $priority Optional. Used to specify the order in which the functions 74 * associated with a particular action are executed. Default 10. 75 * Lower numbers correspond with earlier execution, 76 * and functions with the same priority are executed 77 * in the order in which they were added to the action. 78 * @param int $accepted_args Optional. The number of arguments the function accepts. Default 1. 77 79 * @return boolean true 78 80 */ … … 93 95 * @global array $wp_filter Stores all of the filters 94 96 * 95 * @param string $tagThe name of the filter hook.96 * @param bool|callback $function_to_check optional.97 * @param string $tag The name of the filter hook. 98 * @param bool|callback $function_to_check Optional. The callback to check for. Default false. 97 99 * @return mixed If $function_to_check is omitted, returns boolean for whether the hook has anything registered. 98 100 * When checking a specific function, the priority of that hook is returned, or false if the function is not attached. … … 143 145 * </code> 144 146 * 145 * @global array $wp_filter Stores all of the filters 147 * @global array $wp_filter Stores all of the filters. 146 148 * @global array $merged_filters Merges the filter hooks using this function. 147 * @global array $wp_current_filter stores the list of current filters with the current one last149 * @global array $wp_current_filter Stores the list of current filters with the current one last. 148 150 * 149 151 * @since 0.71 150 152 * 151 * @param string $tag The name of the filter hook.152 * @param mixed $value The value on which the filters hooked to <tt>$tag</tt> are applied on.153 * @param mixed $var Additional variables passed to the functions hooked to <tt>$tag</tt>.153 * @param string $tag The name of the filter hook. 154 * @param mixed $value The value on which the filters hooked to <tt>$tag</tt> are applied on. 155 * @param mixed $var Additional variables passed to the functions hooked to <tt>$tag</tt>. 154 156 * @return mixed The filtered value after all hooked functions are applied to it. 155 157 */ … … 211 213 * @global array $wp_current_filter stores the list of current filters with the current one last 212 214 * 213 * @param string $tag The name of the filter hook.214 * @param array $args The arguments supplied to the functions hooked to <tt>$tag</tt>215 * @param string $tag The name of the filter hook. 216 * @param array $args The arguments supplied to the functions hooked to <tt>$tag</tt>. 215 217 * @return mixed The filtered value after all hooked functions are applied to it. 216 218 */ … … 267 269 * @since 1.2.0 268 270 * 269 * @param string $tagThe filter hook to which the function to be removed is hooked.271 * @param string $tag The filter hook to which the function to be removed is hooked. 270 272 * @param callback $function_to_remove The name of the function which should be removed. 271 * @param int $priority optional. The priority of the function (default: 10).273 * @param int $priority Optional. The priority of the function. Default 10. 272 274 * @return boolean Whether the function existed before it was removed. 273 275 */ … … 296 298 * @since 2.7.0 297 299 * 298 * @param string $tagThe filter to remove hooks from.299 * @param bool|int $priority The priority number to remove.300 * @param string $tag The filter to remove hooks from. 301 * @param bool|int $priority Optional. The priority number to remove. Default false. 300 302 * @return bool True when finished. 301 303 */ … … 399 401 * @since 1.2.0 400 402 * 401 * @param string $tagThe name of the action to which the $function_to_add is hooked.403 * @param string $tag The name of the action to which the $function_to_add is hooked. 402 404 * @param callback $function_to_add The name of the function you wish to be called. 403 * @param int $priority optional. Used to specify the order in which the functions associated with a particular action are executed (default: 10). Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action. 404 * @param int $accepted_args optional. The number of arguments the function accept (default 1). 405 * @param int $priority Optional. Used to specify the order in which the functions 406 * associated with a particular action are executed. Default 10. 407 * Lower numbers correspond with earlier execution, 408 * and functions with the same priority are executed 409 * in the order in which they were added to the action. 410 * @param int $accepted_args Optional. The number of arguments the function accept. Default 1. 405 411 * @return bool Will always return true. 406 412 */ … … 427 433 * @global array $wp_actions Increments the amount of times action was triggered. 428 434 * 429 * @param string $tag The name of the action to be executed.430 * @param mixed $arg,... Optional additional arguments which are passed on to the functions hooked to the action.435 * @param string $tag The name of the action to be executed. 436 * @param mixed $arg, ... Optional. Additional arguments which are passed on to the functions hooked to the action. 431 437 * @return null Will return null if $tag does not exist in $wp_filter array 432 438 */ … … 511 517 * @global array $wp_actions Increments the amount of times action was triggered. 512 518 * 513 * @param string $tag The name of the action to be executed.514 * @param array $args The arguments supplied to the functions hooked to <tt>$tag</tt>519 * @param string $tag The name of the action to be executed. 520 * @param array $args The arguments supplied to the functions hooked to <tt>$tag</tt> 515 521 * @return null Will return null if $tag does not exist in $wp_filter array 516 522 */ … … 564 570 * @see has_filter() has_action() is an alias of has_filter(). 565 571 * 566 * @param string $tagThe name of the action hook.567 * @param bool|callback $function_to_check optional.572 * @param string $tag The name of the action hook. 573 * @param bool|callback $function_to_check Optional. The callback to check for. Default false. 568 574 * @return mixed If $function_to_check is omitted, returns boolean for whether the hook has anything registered. 569 575 * When checking a specific function, the priority of that hook is returned, or false if the function is not attached. … … 584 590 * @since 1.2.0 585 591 * 586 * @param string $tagThe action hook to which the function to be removed is hooked.592 * @param string $tag The action hook to which the function to be removed is hooked. 587 593 * @param callback $function_to_remove The name of the function which should be removed. 588 * @param int $priority optional The priority of the function (default: 10).594 * @param int $priority Optional. The priority of the function. Default 10. 589 595 * @return boolean Whether the function is removed. 590 596 */ … … 598 604 * @since 2.7.0 599 605 * 600 * @param string $tagThe action to remove hooks from.601 * @param bool|int $priority The priority number to remove them from. 606 * @param string $tag The action to remove hooks from. 607 * @param bool|int $priority The priority number to remove them from. Default false. 602 608 * @return bool True when finished. 603 609 */
Note: See TracChangeset
for help on using the changeset viewer.