I create a fairly simple function to do the test
function say_hello() {
echo 'Hello';
}
osc_add_hook('pre_item_post', 'say_hello');
But, when I insert the following code into a form
<?php osc_run_hook('pre_item_post'); ?>
The form filled me with codes and error messages, they entered the "Hello" I expected. How am I supposed to call only the Hook that I'm interested in? I'm particularly worried because I want to use the "posted_item" Hook that will run when I post an ad and I do not want all the hooks that are of the type "posted_item" to load.