コード例 #1
0
 /**
  * Gets instance of class.
  *
  * @return WP_Recipe_Difficulty Instance of the class.
  */
 public static function get_instance()
 {
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #2
0
ファイル: initialize.php プロジェクト: manovotny/wp-recipe
<?php

WP_Recipe_Cross_Reference_Posts::get_instance();
WP_Recipe_Cross_Reference_Recipes::get_instance();
WP_Recipe_Cross_References::get_instance();
WP_Recipe_Description::get_instance();
WP_Recipe_Difficulty::get_instance();
WP_Recipe_Directions::get_instance();
WP_Recipe_Enqueue_Admin_Scripts::get_instance();
WP_Recipe_Enqueue_Admin_Styles::get_instance();
WP_Recipe_Enqueue_Scripts::get_instance();
WP_Recipe_Enqueue_Styles::get_instance();
WP_Recipe_Grunticon::get_instance();
WP_Recipe_Id::get_instance();
WP_Recipe_Ingredients::get_instance();
WP_Recipe_Post_Type::get_instance();
WP_Recipe_Post_Type_Columns::get_instance();
WP_Recipe_Post_Type_Remove_Default_Views::get_instance();
WP_Recipe_Query::get_instance();
WP_Recipe_Search_Results::get_instance();
WP_Recipe_Shortcode::get_instance();
WP_Recipe_Taxonomies::get_instance();
WP_Recipe_Tips::get_instance();
WP_Recipe_Yield::get_instance();