/** * Get accessor method for instance property. * * @return mixed Instance of the class. */ public static function get_instance() { if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
/** * Initializes view. */ public function __initialize() { $taxonomies_options = array(WP_Recipe_Cooking_Methods_Taxonomy::get_instance()->get_taxonomy_options(), WP_Recipe_Courses_Taxonomy::get_instance()->get_taxonomy_options(), WP_Recipe_Cuisines_Taxonomy::get_instance()->get_taxonomy_options(), WP_Recipe_Diets_Taxonomy::get_instance()->get_taxonomy_options(), WP_Recipe_Ingredients_Taxonomy::get_instance()->get_taxonomy_options(), WP_Recipe_Occasions_Taxonomy::get_instance()->get_taxonomy_options()); WP_Taxonomy_Util::get_instance()->create_taxonomies($taxonomies_options); }