/** * Return active instance of WP_Stream, create one if it doesn't exist * * @return WP_Stream */ public static function get_instance() { if (empty(self::$instance)) { $class = __CLASS__; self::$instance = new $class(); } return self::$instance; }