Viewing File: /home/maglabs/valvtec1/wp-content/themes/indobi/inc/admin/tgm/tgm-init.php
<?php
/**
* TGM Init Class
*/
include_once get_template_directory() . '/inc/admin/tgm/class-tgm-plugin-activation.php';
function indobi_register_required_plugins() {
$plugins = array(
array(
'name' => esc_html__('Redux Framework','indobi'),
'slug' => 'redux-framework',
'required' => true,
),
array(
'name' => esc_html__('Meta Box','indobi'),
'slug' => 'meta-box',
'required' => true,
),
array(
'name' => esc_html__('One Click Demo Import','indobi'),
'slug' => 'one-click-demo-import',
'required' => true,
),
array(
'name' => esc_html__('Contact Form 7','indobi'),
'slug' => 'contact-form-7',
'required' => true,
),
array(
'name' => esc_html__('MailChimp for WordPress','indobi'),
'slug' => 'mailchimp-for-wp',
'required' => true,
),
array(
'name' => esc_html__('Elementor Page Builder','indobi'),
'slug' => 'elementor',
'required' => true,
),
array(
'name' => esc_html__('Recent Posts Widget With Thumbnails','indobi'),
'slug' => 'recent-posts-widget-with-thumbnails',
'required' => true,
),
array(
'name' => 'ZD Custom Post Types',
'slug' => 'zd-custom-post-types',
'source' => 'http://wordpress.zcube.in/indobi/wp-content/plugins/zd-custom-post-types.zip',
'required' => true,
'version' => '1.0.1'
),
);
$config = array(
'id' => 'indobi', // Unique ID for hashing notices for multiple instances of indobi.
'default_path' => '', // Default absolute path to bundled plugins.
'menu' => 'indobi-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( 'indobi_register', 'indobi_register_required_plugins' );
Back to Directory
File Manager