Make WordPress Core


Ignore:
Timestamp:
06/28/2014 04:49:39 AM (11 years ago)
Author:
wonderboymusic
Message:

Update @param docs in plugin.php

Props dkotter.
Fixes #28516.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/plugin.php

    r28884 r28886  
    9494 *
    9595 * @param string $tag The name of the filter hook.
    96  * @param callback $function_to_check optional.
     96 * @param bool|callback $function_to_check optional.
    9797 * @return mixed If $function_to_check is omitted, returns boolean for whether the hook has anything registered.
    9898 *  When checking a specific function, the priority of that hook is returned, or false if the function is not attached.
     
    270270 * @param callback $function_to_remove The name of the function which should be removed.
    271271 * @param int $priority optional. The priority of the function (default: 10).
    272  * @param int $accepted_args optional. The number of arguments the function accepts (default: 1).
    273272 * @return boolean Whether the function existed before it was removed.
    274273 */
     
    298297 *
    299298 * @param string $tag The filter to remove hooks from.
    300  * @param int $priority The priority number to remove.
     299 * @param bool|int $priority The priority number to remove.
    301300 * @return bool True when finished.
    302301 */
     
    404403 * @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.
    405404 * @param int $accepted_args optional. The number of arguments the function accept (default 1).
     405 * @return bool Will always return true.
    406406 */
    407407function add_action($tag, $function_to_add, $priority = 10, $accepted_args = 1) {
     
    565565 *
    566566 * @param string $tag The name of the action hook.
    567  * @param callback $function_to_check optional.
     567 * @param bool|callback $function_to_check optional.
    568568 * @return mixed If $function_to_check is omitted, returns boolean for whether the hook has anything registered.
    569569 *  When checking a specific function, the priority of that hook is returned, or false if the function is not attached.
     
    599599 *
    600600 * @param string $tag The action to remove hooks from.
    601  * @param int $priority The priority number to remove them from.
     601 * @param bool|int $priority The priority number to remove them from.
    602602 * @return bool True when finished.
    603603 */
Note: See TracChangeset for help on using the changeset viewer.