HEX
Server: LiteSpeed
System: Linux cluster02.load-balancer.x2.network 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: kbdhpghp (1098)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/kbdhpghp/atenaleaders.com.br/wp-content/plugins/thim-core/admin/class-thim-admin-config.php
<?php

/**
 * Class Thim_Admin_Config
 *
 * @since 1.1.0
 */
class Thim_Admin_Config extends Thim_Singleton {
	/**
	 * @since 1.1.0
	 *
	 * @var null
	 */
	private static $configs = null;

	/**
	 * Thim_Admin_Config constructor.
	 */
	protected function __construct() {
		$this->set_config();
	}

	/**
	 * Set configs.
	 *
	 * @since 1.1.0
	 */
	private function set_config() {
		self::$configs = array(
			'api_check_self_update' => 'https://thimpresswp.github.io/thim-core/update-check.json',
			'api_update_plugins'    => 'https://downloads.thimpress.com/wp-json/thim_em/v1/plugins',
			'api_thim_market'       => 'https://updates.thimpress.com/wp-json/thim-market/v1/',
			'personal_token'        => 'lfCHoHSKA6DZD4BiwWo9HRZUknLi3sVm',
			'host_envato_app'       => 'https://updates.thimpress.com/thim-envato-market',
			'host_downloads'        => 'https://downloads.thimpress.com/thim-envato-market',
			'welcome_panel_remote'  => 'https://thimpresswp.github.io/thim-core/newsfeed.json',
			'demo_data'             => 'https://thimpresswp.github.io/demo-data/',
			'host_downloads_api'    => 'https://updates.thimpress.com/',
		);
	}

	/**
	 * Get config by key.
	 *
	 * @since 1.1.0
	 *
	 * @param      $key
	 * @param null $default
	 *
	 * @return mixed|null
	 */
	public static function get( $key, $default = null ) {
		if ( ! isset( self::$configs[ $key ] ) ) {
			return $default;
		}

		return apply_filters( "thim_core_ac_$key", self::$configs[ $key ] );
	}
}