Beispiel #1
0
 /**
  * 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'));
 }
Beispiel #2
0
 public static function get_instance()
 {
     // create an object
     NULL === self::$instance && (self::$instance = new self());
     return self::$instance;
     // return the object
 }
Beispiel #3
0
 public function init_actions()
 {
     add_shortcode('anspress', array(AnsPress_BasePage_Shortcode::get_instance(), 'anspress_sc'));
 }