Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
drleilu
/
www
/
wp-content
/
themes
/
luxia
/
inc
/
admin
/
tgm
/
✏️
Editing: tgm-init.php
<?php /** * TGM Init Class */ include_once get_template_directory() . '/inc/admin/tgm/class-tgm-plugin-activation.php'; function luxia_register_required_plugins() { $plugins = array( array( 'name' => esc_html__('Redux Framework','luxia'), 'slug' => 'redux-framework', 'required' => true, ), array( 'name' => esc_html__('Meta Box','luxia'), 'slug' => 'meta-box', 'required' => true, ), array( 'name' => esc_html__('One Click Demo Import','luxia'), 'slug' => 'one-click-demo-import', 'required' => true, ), array( 'name' => esc_html__('Contact Form 7','luxia'), 'slug' => 'contact-form-7', 'required' => true, ), array( 'name' => esc_html__('MailChimp for WordPress','luxia'), 'slug' => 'mailchimp-for-wp', 'required' => true, ), array( 'name' => esc_html__('Elementor Page Builder','luxia'), 'slug' => 'elementor', 'required' => true, ), array( 'name' => 'ZD Custom Post Types', 'slug' => 'zd-custom-post-types', 'source' => 'http://wordpress.zcube.in/luxia/wp-content/plugins/zd-custom-post-types.zip', 'required' => true, 'version' => '1.0.1' ), ); $config = array( 'id' => 'luxia', // Unique ID for hashing notices for multiple instances of luxia. 'default_path' => '', // Default absolute path to bundled plugins. 'menu' => 'luxia-install-plugins', // Menu slug. 'parent_slug' => 'themes.php', // Parent menu slug. 'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used. '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' => true, // Automatically activate plugins after installation or not. 'message' => '', // Automatically activate plugins after installation or not ); tgmpa( $plugins, $config ); } add_action( 'luxia_register', 'luxia_register_required_plugins' );
💾 Save
❌ Cancel