• File: plugin-activation.php
  • Full Path: /home/slvgwrnz/public_html/wp-content/themes/remigious/lib/plugin-activation.php
  • Date Modified: 02/05/2025 11:42 AM
  • File size: 3.18 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

require_once get_template_directory() . '/lib/class-tgm-plugin-activation.php';

add_action( 'tgmpa_register', 'prinox_register_required_plugins' );

function prinox_register_required_plugins() {

    $plugins = array(
        array(
			'name'               => esc_html__('Prinox Tools', 'prinox'),
			'slug'               => 'prinox-tools',
			'source'             => ('https://themexriver.com/wp/prinox-wp/tools/plugin/prinox-tools.zip'), 
			'required'           => true,
			'force_activation'   => false,
			'force_deactivation' => false,
		),
        array(
            'name'     => 'Elementor Website Builder',
            'slug'     => 'elementor',
            'required' => true,
        ),
        array(
            'name'     => 'WooCommerce',
            'slug'     => 'woocommerce',
            'required' => true,
        ),
        array(
            'name'     => 'Variation Swatches for WooCommerce',
            'slug'     => 'woo-variation-swatches',
            'required' => true,
        ),
        array(
            'name'     => 'WPC Smart Quick View for WooCommerce',
            'slug'     => 'woo-smart-quick-view',
            'required' => true,
        ),
        array(
            'name'     => 'WPC Smart Wishlist for WooCommerce',
            'slug'     => 'woo-smart-wishlist',
            'required' => true,
        ),
        array(
            'name'     => esc_html__('Contact Form 7', 'prinox'),
            'slug'     => 'contact-form-7',
            'required' => false,
        ),
        array(
            'name'     => esc_html__('SVG Support', 'prinox'),
            'slug'     => 'svg-support',
            'required' => false,
        ),

        array(
            'name'     => esc_html__('MC4WP: Mailchimp for WordPress', 'prinox'),
            'slug'     => 'mailchimp-for-wp',
            'required' => false,
        ),

        array(
            'name'     => esc_html__( 'One Click Demo Import', 'prinox' ),
            'slug'     => 'one-click-demo-import',
            'required' => false,
        ),
        array(
            'name'     => esc_html__( 'Breadcrumb NavXT', 'prinox' ),
            'slug'     => 'breadcrumb-navxt',
            'required' => false,
        ),
        array(
            'name'               => esc_html__('Slider Revolution', 'prinox'),
            'slug'               => 'revslider',
            'source'             => 'https://themexriver.com/wp/prinox/tools/plugin/revslider.zip',
            'required'           => true,
        ), 
        array(
			'name'               => esc_html__('Envato Market', 'prinox'),
			'slug'               => 'envato-market',
			'source'             => esc_url( 'https://goo.gl/pkJS33' ),
            'external_url'       => esc_url( 'https://goo.gl/pkJS33' ),
			'required'           => true,
		), 

    );

    $config = array(
        'id'           => 'prinox',
        'default_path' => '',
        'menu'         => 'tgmpa-install-plugins',
        'dismissable'  => true,
        'dismiss_msg'  => '',
        'is_automatic' => false,
        'message'      => '',

    );

    tgmpa( $plugins, $config );
}