芝麻web文件管理V1.00
编辑当前文件:/home/ephorei/www/wp-content/plugins/ultimate-addons-for-gutenberg/lib/zip-ai/loader.php
define_constants(); } /** * Define the required constants. * * @since 1.0.0 * @return void */ public function define_constants() { define( 'ZIP_AI_FILE', __FILE__ ); define( 'ZIP_AI_DIR', plugin_dir_path( ZIP_AI_FILE ) ); define( 'ZIP_AI_URL', plugins_url( '/', ZIP_AI_FILE ) ); define( 'ZIP_AI_VERSION', '2.0.0' ); define( 'ZIP_AI_MENU_SLUG', 'zip-ai' ); define( 'ZIP_AI_MIDDLEWARE', 'https://app.zipwp.com/auth/' ); define( 'ZIP_AI_ZIPWP_API', 'https://api.zipwp.com/api/' ); define( 'ZIP_AI_CREDIT_SERVER_API', 'https://credits.startertemplates.com/api/' ); define( 'ZIP_AI_CREDIT_TOPUP_URL', 'https://app.zipwp.com/credits-pricing' ); define( 'ZIP_AI_CREDIT_THRESHOLD_MEDIUM', 65 ); define( 'ZIP_AI_CREDIT_THRESHOLD_HIGH', 85 ); } /** * Setup the required classes. * * @since 1.0.0 * @return void */ public function setup_classes() { // Migrate any older modules to the new format. Module::migrate_options(); // Enable the Zip AI Chat Sidebar if required - filter is for old users. if ( apply_filters( 'zip_ai_enable_chat_sidebar', true ) && Module::is_enabled( 'ai_assistant' ) ) { Sidebar_Configurations::get_instance(); } // Enable the Zip AI Admin Configurations if required. if ( is_admin() ) { Admin_Configurations::get_instance(); } } } /** * Kicking this off by calling 'get_instance()' method */ Loader::get_instance(); }