Sid Gifari File Manager
🏠 Root
/
home
/
ailwtbdh
/
lynchestinegroup.com
/
wp-content
/
themes
/
koncrete
/
inc
/
Editing: tgm-config.php
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ namespace radiustheme\koncrete; class TGM_Config { public $theme_prefix; public $path; public function __construct() { $this->theme_prefix = Constants::$theme_prefix; $this->path = Constants::$theme_plugins_bundle_dir; add_action( 'tgmpa_register', array( $this, 'register_required_plugins' ) ); } public function register_required_plugins(){ $plugins = array( // Bundled array( 'name' => 'Koncrete Core', 'slug' => 'koncrete-core', 'source' => 'koncrete-core.zip', 'required' => true, 'version' => '1.5.5' ), array( 'name' => 'RT Framework', 'slug' => 'rt-framework', 'source' => 'rt-framework.zip', 'required' => true, 'version' => '2.8' ), array( 'name' => 'RT Demo Importer', 'slug' => 'rt-demo-importer', 'source' => 'rt-demo-importer.zip', 'required' => false, 'version' => '4.3' ), array( 'name' => 'LayerSlider WP', 'slug' => 'LayerSlider', 'source' => 'LayerSlider.zip', 'required' => false, 'external_url' => 'https://layerslider.kreaturamedia.com', 'version' => '6.11.2' ), // Repository array( 'name' => 'Redux Framework', 'slug' => 'redux-framework', 'required' => true, ), array( 'name' => 'Elementor Page Builder', 'slug' => 'elementor', 'required' => true, ), array( 'name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'required' => false, ), // plugin for e-commerce array( 'name' => 'WooCommerce', 'slug' => 'woocommerce', 'required' => false, ), array( 'name' => 'YITH WooCommerce Quick View', 'slug' => 'yith-woocommerce-quick-view', 'required' => false, ), array( 'name' => 'YITH WooCommerce Wishlist', 'slug' => 'yith-woocommerce-wishlist', 'required' => false, ), array( 'name' => 'YITH WooCommerce Compare', 'slug' => 'yith-woocommerce-compare', 'required' => false, ), ); $config = array( 'id' => $this->theme_prefix, // Unique ID for hashing notices for multiple instances of TGMPA. 'default_path' => $this->path, // Default absolute path to bundled plugins. 'menu' => $this->theme_prefix . '-install-plugins', // Menu slug. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. ); tgmpa( $plugins, $config ); } } new TGM_Config;
Save
Cancel