Use this function to hook (attach) your plugin's function(s) to anchors (actions, filters) in the core code (or other plugins).
<?php hook( $anchor, $function, $params, $order ); ?>
$anchor
The name of the anchor you would like to hook into.
$function
The name of your function.
$params
An array of parameters you would like to send to your function. Example:
<?php hook( "anchor", "my_func", array( $param1, $param2 ) ); function my_func( $param1, $param2 ) { echo $param1; echo $param2; } ?>
$order
This option lets you decide when your plugin function should be called, relative to the other hooks in the specific anchor. This is useful if you need to force your function to perform its' task before or after others.