Generally speaking, you wouldn't add an entire class to a hook. The add_action()
/add_filter()
hooks expect callback functions, which can be referenced from within a class.
Let's say that you have an init()
function inside your class, that you want to hook into the WordPress init
hook.
Put your add_action()
call inside your class, and then identify the callback like so:
add_action( 'init', array( &$this$this, 'init' ) );
(Note: I'm assuming your class is properly namespaced; otherwise, be sure to namespace your callback functions.)