public function init_shortcodes() { $includes = array('class-review-shortcode', 'class-table-shortcode', 'class-reviews-list-shortcode', 'class-rating-stars-shortcode'); foreach ($includes as $file) { include_once 'includes/' . $file . '.php'; } $review_shortcode = RWP_Review_Shortcode::get_instance(); $table_shortcode = RWP_Table_Shortcode::get_instance(); $reviews_list_shortcode = RWP_Reviews_List_Shortcode::get_instance(); $reviews_list_shortcode = RWP_Reviews_List_Shortcode::get_instance(); $rating_stars_shortcode = RWP_Rating_Stars_Shortcode::get_instance(); // Add WP filter for automatic shortcodes add_filter('the_content', array($this, 'filter_content')); }
public static function get_instance() { // If the single instance hasn't been set, set it now. if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }