/** * Returns the main instance of WP_Mapa_Politico to prevent the need to use globals. * * @since 1.0.0 * @return object WP_Mapa_Politico */ function WP_Mapa_Politico() { $instance = WP_Mapa_Politico::instance(__FILE__, '2.0.2'); if (is_null($instance->settings)) { $instance->settings = WP_Mapa_Politico_Settings::instance($instance); } return $instance; }
/** * Main WP_Mapa_Politico Instance * * Ensures only one instance of WP_Mapa_Politico is loaded or can be loaded. * * @since 1.0.0 * @static * @see WP_Mapa_Politicoe() * @return Main WP_Mapa_Politico instance */ public static function instance($file = '', $version = '1.0.0') { if (is_null(self::$_instance)) { self::$_instance = new self($file, $version); } return self::$_instance; }