| Server IP : 51.79.230.26 / Your IP : 216.73.217.128 Web Server : LiteSpeed System : Linux sg2.exonhost.com 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : mukutpub ( 1151) PHP Version : 8.2.33 Disable Function : eval, show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, symlink, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mukutpub/joldhi.com/wp-content/themes/di-ecommerce/inc/tgm/ |
Upload File : |
<?php
if( ! function_exists( 'di_ecommerce_register_required_plugins' ) ) {
/**
* Display recommended plugins using TGMPA class.
* @return [type] [description]
*/
function di_ecommerce_register_required_plugins() {
$plugins = array(
array(
'name' => __( 'Di Themes Demo Site Importer', 'di-ecommerce'),
'slug' => 'di-themes-demo-site-importer',
'required' => false,
),
array(
'name' => __( 'Elementor Page Builder', 'di-ecommerce'),
'slug' => 'elementor',
'required' => false,
),
array(
'name' => __( 'Post Grid Elementor Addon', 'di-ecommerce'),
'slug' => 'post-grid-elementor-addon',
'required' => false,
),
array(
'name' => __( 'Essential Addons for Elementor', 'di-ecommerce'),
'slug' => 'essential-addons-for-elementor-lite',
'required' => false,
),
array(
'name' => __( 'WooCommerce (For E-Commerce)', 'di-ecommerce'),
'slug' => 'woocommerce',
'required' => false,
),
array(
'name' => __( 'Contact Form 7 (For Forms)', 'di-ecommerce'),
'slug' => 'contact-form-7',
'required' => false,
),
array(
'name' => __( 'Max Mega Menu (for Mega Menu)', 'di-ecommerce'),
'slug' => 'megamenu',
'required' => false,
),
array(
'name' => __( 'Regenerate Thumbnails', 'di-ecommerce'),
'slug' => 'regenerate-thumbnails',
'required' => false,
),
array(
'name' => __( 'YITH WooCommerce Quick View', 'di-ecommerce'),
'slug' => 'yith-woocommerce-quick-view',
'required' => false,
),
array(
'name' => __( 'WooCommerce Wishlist Plugin', 'di-ecommerce'),
'slug' => 'ti-woocommerce-wishlist',
'required' => false,
),
array(
'name' => __( 'WooCommerce PDF Invoices & Packing Slips', 'di-ecommerce'),
'slug' => 'woocommerce-pdf-invoices-packing-slips',
'required' => false,
),
array(
'name' => __( 'MailOptin - Newsletters plugin', 'di-ecommerce'),
'slug' => 'mailoptin',
'required' => false,
),
);
$config = array(
'id' => 'di-ecommerce', // Unique ID for hashing notices for multiple instances of TGMPA.
'default_path' => '', // Default absolute path to bundled plugins.
'menu' => 'di-ecommerce-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 );
}
}
add_action( 'tgmpa_register', 'di_ecommerce_register_required_plugins' );