Ticket #5225: plugin.phpdoc.3.diff
File plugin.phpdoc.3.diff, 6.0 KB (added by , 18 years ago) |
---|
-
plugin.php
30 30 */ 31 31 32 32 /** 33 * Hooks a function or method to a specific filter action.33 * add_filter() - Hooks a function or method to a specific filter action. 34 34 * 35 35 * Filters are the hooks that WordPress launches to modify text of various types 36 36 * before adding it to the database or sending it to the browser screen. Plugins … … 58 58 * 59 59 * @package WordPress 60 60 * @subpackage Plugin 61 * @since 1.561 * @since 0.71 62 62 * @global array $wp_filter Stores all of the filters added in the form of 63 63 * wp_filter['tag']['array of priorities']['array of functions serialized']['array of ['array (functions, accepted_args)]'] 64 64 * @global array $merged_filters Tracks the tags that need to be merged for later. If the hook is added, it doesn't need to run through that process. … … 79 79 } 80 80 81 81 /** 82 * Call the functions added to a filter hook.82 * apply_filters() - Call the functions added to a filter hook. 83 83 * 84 84 * The callback functions attached to filter hook <tt>$tag</tt> are invoked by 85 85 * calling this function. This function can be used to create a new filter hook … … 97 97 * 98 98 * @package WordPress 99 99 * @subpackage Plugin 100 * @since 1.5100 * @since 0.71 101 101 * @global array $wp_filter Stores all of the filters 102 102 * @global array $merge_filters Merges the filter hooks using this function. 103 103 * … … 132 132 } 133 133 134 134 /** 135 * Merge the filter functions of a specific filter hook with generic filter functions.135 * merge_filters() - Merge the filter functions of a specific filter hook with generic filter functions. 136 136 * 137 137 * It is possible to defined generic filter functions using the filter hook 138 138 * <em>all</e>. These functions are called for every filter tag. This function … … 164 164 } 165 165 166 166 /** 167 * Removes a function from a specified filter hook.167 * remove_filter() - Removes a function from a specified filter hook. 168 168 * 169 169 * This function removes a function attached to a specified filter hook. This 170 170 * method can be used to remove default functions attached to a specific filter … … 176 176 * 177 177 * @package WordPress 178 178 * @subpackage Plugin 179 * @since 1. 5179 * @since 1.2 180 180 * 181 181 * @param string $tag The filter hook to which the function to be removed is hooked. 182 182 * @param callback $function_to_remove The name of the function which should be removed. … … 196 196 } 197 197 198 198 /** 199 * Hooks a function on to a specific action.199 * add_action() - Hooks a function on to a specific action. 200 200 * 201 201 * Actions are the hooks that the WordPress core launches at specific points 202 202 * during execution, or when specific events occur. Plugins can specify that … … 207 207 * 208 208 * @package WordPress 209 209 * @subpackage Plugin 210 * @since 1. 5210 * @since 1.2 211 211 * 212 212 * @param string $tag The name of the action to which the <tt>$function_to-add</tt> is hooked. 213 213 * @param callback $function_to_add The name of the function you wish to be called. … … 219 219 } 220 220 221 221 /** 222 * Execute functions hooked on a specific action hook.222 * do_action() - Execute functions hooked on a specific action hook. 223 223 * 224 224 * This function invokes all functions attached to action hook <tt>$tag</tt>. 225 225 * It is possible to create new action hooks by simply calling this function, … … 232 232 * 233 233 * @package WordPress 234 234 * @subpackage Plugin 235 * @since 1. 5235 * @since 1.2 236 236 * @global array $wp_filter Stores all of the filters 237 237 * @global array $wp_actions Increments the amount of times action was triggered. 238 238 * … … 271 271 } 272 272 273 273 /** 274 * Return the number times an action is fired.274 * did_action() - Return the number times an action is fired. 275 275 * 276 276 * @package WordPress 277 277 * @subpackage Plugin … … 291 291 } 292 292 293 293 /** 294 * Execute functions hooked on a specific action hook, specifying arguments in an array.294 * do_action_ref_array() - Execute functions hooked on a specific action hook, specifying arguments in an array. 295 295 * 296 296 * @see do_action() This function is identical, but the arguments passed to 297 297 * the functions hooked to <tt>$tag</tt> are supplied using an array. … … 331 331 } 332 332 333 333 /** 334 * Removes a function from a specified action hook.334 * remove_action() - Removes a function from a specified action hook. 335 335 * 336 336 * This function removes a function attached to a specified action hook. This 337 337 * method can be used to remove default functions attached to a specific filter … … 341 341 * 342 342 * @package WordPress 343 343 * @subpackage Plugin 344 * @since 1. 5344 * @since 1.2 345 345 * 346 346 * @param string $tag The action hook to which the function to be removed is hooked. 347 347 * @param callback $function_to_remove The name of the function which should be removed. … … 379 379 } 380 380 381 381 /** 382 * Hook a function on a plugin activation action hook.382 * register_activation_hook() - Hook a function on a plugin activation action hook. 383 383 * 384 384 * When a plugin is activated, the action 'activate_PLUGINNAME' hook is 385 385 * activated. In the name of this hook, PLUGINNAME is replaced with the name of … … 392 392 * 393 393 * @package WordPress 394 394 * @subpackage Plugin 395 * @since 1.5395 * @since 2.0 396 396 * 397 397 * @access private 398 398 * … … 405 405 } 406 406 407 407 /** 408 * Hook a function on a plugin deactivation action hook.408 * register_deactivation_hook() - Hook a function on a plugin deactivation action hook. 409 409 * 410 410 * When a plugin is deactivated, the action 'deactivate_PLUGINNAME' hook is 411 411 * deactivated. In the name of this hook, PLUGINNAME is replaced with the name of … … 431 431 } 432 432 433 433 /** 434 * Build Unique ID for storage and retrieval434 * _wp_filter_build_unique_id() - Build Unique ID for storage and retrieval 435 435 * 436 436 * The old way to serialize the callback caused issues and this function is the 437 437 * solution. It works by checking for objects and creating an a new property in … … 486 486 return $function[0].$function[1]; 487 487 } 488 488 489 ?> 490 No newline at end of file 489 ?>