Hooks

A hook is a small piece of code that allows you to insert more code (plugin) in the middle of certain Osclass’ actions. Usage of hooks To use a hook add the following code to your plugin file : osc_add_hook(‘hook_name’, ‘function_name’, ‘priority’); Substitute ‘hook_name’ by the name of the hook you want to attach ‘function_name’, and […]

Read More