Thanks for putting little bit of light on the subject, but it created some shadows that bringing more questions:
1. how should I name file with my custom function in /includes/hooks ?
2. how do I see if it actually works ? In /includes/hool/example.php file I created some basic function:
function get_all_products() {
$product_groups_query = "SELECT g.* FROM tblproductgroups g WHERE g.hidden <>1 ORDER BY g.order ASC";
$groups = full_query($product_groups_query);
foreach($groups as $group) {
echo '<pre>';
var_dump($group);
echo '</pre>';
}
}
and then within the same file at the bottom:
add_hook("ClientAdd",1,"get_all_products");
Cheers - Matt.