Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Function : bind_event()

Blair2004 edited this page Oct 31, 2014 · 2 revisions

Description : Bind an event to a specific action. Before the action is done, all registered events are triggered. Accepts as the first parameter a valid event and the second parameter can be a string with the name of the function to call, or array with two inputs : object and method name to call (as string).

Example : bind_event( ‘custom_event’ , array( $this , ‘do_action’ ) ); // or Bind_event( ‘custom_event’ , ‘specific_function’ );