/** * Function get called on init */ public function init_actions() { // Register anspress shortcode. add_shortcode('anspress', array(AnsPress_BasePage_Shortcode::get_instance(), 'anspress_sc')); // Register question shortcode. add_shortcode('question', array(AnsPress_Question_Shortcode::get_instance(), 'anspress_question_sc')); }
public static function get_instance() { // create an object NULL === self::$instance && (self::$instance = new self()); return self::$instance; // return the object }
public function init_actions() { add_shortcode('anspress', array(AnsPress_BasePage_Shortcode::get_instance(), 'anspress_sc')); }