Function : bind_event()
Instead of hooks, Tendoo supports events, which are registred with "bind_event". This function accepts 2 parameters as follows :
@param (String) a valid event name
@param (Array/String) a callback function name (String) or Array with object as first parameter and the name of the method as second parameter.
@return null.
Notice : this function must only be called within backend.php or frontend.php module or theme file.
Here is an example :
<?php
// Let's consider that "publish_post" is a valid event.
bind_event( 'publish_post' , array( $obj , 'publish_post' ) );
// or
bind_event( 'publish_post' , 'custom_publish_post' ) );
Updated less than a minute ago