WordPress class, using add_action to call member function does not work
Well it can’t and won’t work like you want it to. Let’s look at what exactly are you doing. Inside your constructor you have: add_action(‘init’, array( &$this, ‘init’ ) ); //this doesn’t work So you add init method of your object to WPs init hook. When WP runs it’s init action, then your init method … Read more