Changeset 28886 for trunk/src/wp-includes/plugin.php
- Timestamp:
- 06/28/2014 04:49:39 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/plugin.php
r28884 r28886 94 94 * 95 95 * @param string $tag The name of the filter hook. 96 * @param callback $function_to_check optional.96 * @param bool|callback $function_to_check optional. 97 97 * @return mixed If $function_to_check is omitted, returns boolean for whether the hook has anything registered. 98 98 * When checking a specific function, the priority of that hook is returned, or false if the function is not attached. … … 270 270 * @param callback $function_to_remove The name of the function which should be removed. 271 271 * @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).273 272 * @return boolean Whether the function existed before it was removed. 274 273 */ … … 298 297 * 299 298 * @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. 301 300 * @return bool True when finished. 302 301 */ … … 404 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. 405 404 * @param int $accepted_args optional. The number of arguments the function accept (default 1). 405 * @return bool Will always return true. 406 406 */ 407 407 function add_action($tag, $function_to_add, $priority = 10, $accepted_args = 1) { … … 565 565 * 566 566 * @param string $tag The name of the action hook. 567 * @param callback $function_to_check optional.567 * @param bool|callback $function_to_check optional. 568 568 * @return mixed If $function_to_check is omitted, returns boolean for whether the hook has anything registered. 569 569 * When checking a specific function, the priority of that hook is returned, or false if the function is not attached. … … 599 599 * 600 600 * @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. 602 602 * @return bool True when finished. 603 603 */
Note: See TracChangeset
for help on using the changeset viewer.