/** * 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_Settings Instance * * Ensures only one instance of WP_Mapa_Politico_Settings is loaded or can be loaded. * * @since 1.0.0 * @static * @see WP_Mapa_Politico() * @return Main WP_Mapa_Politico_Settings instance */ public static function instance($parent) { if (is_null(self::$_instance)) { self::$_instance = new self($parent); } return self::$_instance; }