HEX
Server: LiteSpeed
System:
User: ()
PHP: 7.3.33
Disabled: ln,cat,popen,pclose,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,system,dl,passthru,exec,shell_exec,popen,proc_close,proc_get_status,proc_nice,proc_open,escapeshellcmd,escapeshellarg,show_source,posix_mkfifo,mysql_list_dbs,get_current_user,getmyuid,pconnect,link,symlink,pcntl_exec,ini_alter,pfsockopen,leak,apache_child_terminate,posix_setpgid,posix_setsid,posix_setuid,proc_terminate,syslog,stream_select,socket_select,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_accept,socket_bind,socket_strerror,pcntl_fork,pcntl_signal,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,openlog,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,virtual,ini_get_all,php_passthru,posix_uname,php_uname,highlight_file,define_syslog_variables,ftp_exec,inject_code,eval
Upload Files
File: /var/www/vhosts/miroglu.net/httpdocs/wp-content/themes/the-landscaper/inc/tgm-plugin-activation.php
<?php
/**
 * This file represents an example of the code that themes would use to register
 * the required plugins.
 *
 * It is expected that theme authors would copy and paste this code into their
 * functions.php file, and amend to suit.
 *
 * @package    TGM-Plugin-Activation
 * @subpackage Example
 * @version    2.6.1.
 * @author     Thomas Griffin, Gary Jones, Juliette Reinders Folmer
 * @copyright  Copyright (c) 2011, Thomas Griffin
 * @license    http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
 * @link       https://github.com/TGMPA/TGM-Plugin-Activation
 */

/**
 * Register the required plugins for this theme.
 */
function thelandscaper_register_required_plugins() {

    /**
     * Array of plugin arrays. Required keys are name and slug.
     * If the source is NOT from the .org repo, then source is also required.
     */
    $plugins = array(
        array(
            'name'               => 'Advanced Custom Fields Pro',
            'slug'               => 'advanced-custom-fields-pro',
            'source'             => 'https://plugins.qreativethemes.com/advanced-custom-fields-pro.zip',
            'required'           => true,
            'version'            => '6.0.7',
            'external_url'       => 'https://www.advancedcustomfields.com/pro'
        ),
        array(
            'name'               => 'The Landscaper Toolkit',
            'slug'               => 'the-landscaper-toolkit',
            'source'             => 'https://plugins.qreativethemes.com/the-landscaper/the-landscaper-toolkit.zip',
            'required'           => true,
            'version'            => '1.9.3',
            'external_url'       => 'https://qreativethemes.com'
        ),
        array(
            'name'               => 'One Click Demo Import',
            'slug'               => 'one-click-demo-import',
            'required'           => false,
        ),
        array(
            'name'               => 'Portfolio Post Type',
            'slug'               => 'portfolio-post-type',
            'required'           => false,
        ),
        array(
            'name'               => 'Breadcrumb NavXT',
            'slug'               => 'breadcrumb-navxt',
            'required'           => false,
        ),
        array(
            'name'               => 'Essential Grid',
            'slug'               => 'essential-grid',
            'source'             => 'https://plugins.qreativethemes.com/the-landscaper/essential-grid.zip',
            'required'           => false,
            'version'            => '3.0.17.1',
            'external_url'       => 'https://codecanyon.net/item/essential-grid-wordpress-plugin/7563340'
        ),
        array(
            'name'               => 'Simple Page Sidebars',
            'slug'               => 'simple-page-sidebars',
            'required'           => false,
        ),
        array(
            'name'               => 'Contact Form 7',
            'slug'               => 'contact-form-7',
            'required'           => false,
        ),
        array(
            'name'               => 'WooCommerce',
            'slug'               => 'woocommerce',
            'required'           => false
        ),
    );

    // Set Elementor as recommended plugin if SiteOrigin is not activated
    if ( ! class_exists( 'SiteOrigin_Panels' ) ) {
        $plugins[] = array(
            'name'               => 'Elementor Website Builder',
            'slug'               => 'elementor',
            'required'           => true,
        );
    }

    // Recommend plugins if SiteOrigin Page Builder is installed
    if ( ! did_action( 'elementor/loaded' ) && class_exists( 'SiteOrigin_Panels' ) ) {
        $plugins[] = array(
            'name'               => 'Black Studio TinyMCE Widget',
            'slug'               => 'black-studio-tinymce-widget',
            'required'           => false,
        );
        $plugins[] = array(
            'name'               => 'Easy Fancybox',
            'slug'               => 'easy-fancybox',
            'required'           => false,
        );
    }

    $config = array(
        'id'           => 'tgmpa',                 // Unique ID for hashing notices for multiple instances of TGMPA.
        'default_path' => '',                      // Default absolute path to bundled plugins.
        'menu'         => 'tgmpa-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' => false,                   // Automatically activate plugins after installation or not.
        'message'      => '',                      // Message to output right before the plugins table.
    );
    
    tgmpa( $plugins, $config );
}
add_action( 'tgmpa_register', 'thelandscaper_register_required_plugins' );