/**
  * Return the class instance.
  * 
  * @return Sofa_Crowdfunding_WPML
  */
 public static function get_instance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new Sofa_Crowdfunding_WPML();
     }
     return self::$instance;
 }
示例#2
0
/**
 * Returns the one and only instance of this plugin
 * @return Sofa_Crowdfunding_WPML
 */
function get_sofa_crowdfunding_wpml()
{
    return Sofa_Crowdfunding_WPML::get_instance();
}