*
* This function is hooked into tgmpa_init, which is fired within the
* TGM_Plugin_Activation class constructor.
*/
function my_theme_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(
// This is an example of how to include a plugin from the WordPress Plugin Repository.
array(
'name' => 'Cookie Notice & Compliance for GDPR / CCPA',
'slug' => 'cookie-notice',
'required' => false,
),
array(
'name' => 'Advanced Custom Fields',
'slug' => 'advanced-custom-fields',
'required' => false,
),
array(
'name' => 'Ad Inserter – Ad Manager & AdSense Ads',
'slug' => 'ad-inserter',
'required' => false,
),
array(
'name' => 'User Activity Log',
'slug' => 'user-activity-log',
'required' => false,
),
array(
'name' => 'WP Mail SMTP by WPForms – The Most Popular SMTP and Registro de correo electrónico Plugin',
'slug' => 'wp-mail-smtp',
'required' => false,
),
array(
'name' => 'FAQ Schema For Pages And Posts',
'slug' => 'faq-schema-for-pages-and-posts',
'required' => false,
),
array(
'name' => 'Duplicate Page',
'slug' => 'duplicate-page',
'required' => false,
),
array(
'name' => 'Table of Contents Plus',
'slug' => 'table-of-contents-plus',
'required' => false,
),
array(
'name' => 'WPS Hide Login',
'slug' => 'wps-hide-login',
'required' => false,
),
array(
'name' => 'Rank Math SEO',
'slug' => 'seo-by-rank-math',
'required' => true,
),
array(
'name' => 'LoginPress | Custom Login Page Customizer',
'slug' => 'loginpress',
'required' => true,
),
array(
'name' => 'En construcción',
'slug' => 'under-construction-page',
'required' => false,
),
array(
'name' => 'AGCA - Custom Dashboard & Login Page',
'slug' => 'ag-custom-admin',
'required' => false,
),
array(
'name' => 'Bulk Page Generator',
'slug' => 'bulk-page-generator',
'required' => false,
),
array(
'name' => 'Custom Login Page Customizer',
'slug' => 'login-customizer',
'required' => false,
),
array(
'name' => 'Custom Post Type UI',
'slug' => 'custom-post-type-ui',
'required' => true,
),
array(
'name' => 'Disable Media Pages',
'slug' => 'disable-media-pages',
'required' => true,
),
array(
'name' => 'Disable Post Revision',
'slug' => 'disable-post-revision',
'required' => true,
),
array(
'name' => 'Duplicate Page',
'slug' => 'duplicate-page',
'required' => true,
),
array(
'name' => 'Error Log Monitor',
'slug' => 'error-log-monitor',
'required' => false,
),
array(
'name' => 'Optimize Database after Deleting Revisions',
'slug' => 'rvg-optimize-database',
'required' => false,
),
array(
'name' => 'CompressX - AVIF & WebP Converter',
'slug' => 'compressx',
'required' => true,
),
array(
'name' => 'Query Monitor',
'slug' => 'query-monitor',
'required' => false,
),
array(
'name' => 'Yabe Webfont',
'slug' => 'yabe-webfont',
'required' => true,
),
array(
'name' => 'Permalink Manager Lite',
'slug' => 'permalink-manager',
'required' => false,
),
array(
'name' => 'WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager',
'slug' => 'insert-headers-and-footers',
'required' => true,
),
array(
'name' => 'Remove CPT base',
'slug' => 'remove-cpt-base',
'required' => false,
),
array(
'name' => 'All-In-One Security (AIOS) – Security and Firewall',
'slug' => 'all-in-one-wp-security-and-firewall',
'required' => true,
),
array(
'name' => 'Polylang',
'slug' => 'polylang',
'required' => false,
),
array(
'name' => 'LiteSpeed Cache',
'slug' => 'litespeed-cache',
'required' => true,
),
array(
'name' => 'Post Type Switcher',
'slug' => 'post-type-switcher',
'required' => false,
),
array(
'name' => 'All-in-One WP Migration and Backup',
'slug' => 'all-in-one-wp-migration',
'required' => true,
),
array(
'name' => 'Media Library Helper Bulk alt',
'slug' => 'media-library-helper',
'required' => false,
),
array(
'name' => 'Modern Image Formats',
'slug' => 'webp-uploads',
'required' => false,
),
array(
'name' => 'CompressX',
'slug' => 'compressx',
'required' => false,
),
array(
'name' => 'Descargar plugin',
'slug' => 'download-plugin',
'required' => false,
),
array(
'name' => 'WP Multilang',
'slug' => 'wp-multilang',
'required' => false,
),
array(
'name' => 'Woocommerce',
'slug' => 'woocommerce',
'required' => false,
),
array(
'name' => 'Post Export Import with Media',
'slug' => 'post-export-import-with-media',
'required' => false,
),
array(
'name' => 'PiWeb Product Enquiry or product catalog for WooCommerce',
'slug' => 'enquiry-quotation-for-woocommerce',
'required' => false,
),
array(
'name' => 'Swiper JS',
'slug' => 'alcastromol-swiperjs',
'source' => 'https://alcastromol.com/repositorio/plugins/alcastromol-swiperjs.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'wp-rocket-3.15.3',
'slug' => 'wp-rocket',
'source' => 'https://alcastromol.com/repositorio/plugins/wp-rocket-3.15.3.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Polylang Pro',
'slug' => 'polylang-pro',
'source' => 'https://alcastromol.com/repositorio/plugins/polylang-pro.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Polylang for WooCommerce',
'slug' => 'polylang-wc',
'source' => 'https://alcastromol.com/repositorio/plugins/polylang-wc.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
//
);
if (function_exists('alcastromol_is_oxygen_enabled') && alcastromol_is_oxygen_enabled()) {
$plugins = array_merge($plugins, array(
array(
'name' => 'Oxygen 6 con Parche para Tailwind 3',
'slug' => 'oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/oxygen-6-con-parche.zip',
'required' => true,
'version' => '1.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Breakdance Form to Oxygen 6',
'slug' => 'breakdance-forms-for-oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/breakdance-forms-for-oxygen.zip',
'required' => true,
'version' => '0.3.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Breakdance Elements for Oxygen',
'slug' => 'breakdance-elements-for-oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/breakdance-elements-for-oxygen.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
array(
'name' => 'Breakdance WooCommerce for Oxygen',
'slug' => 'breakdance-woocommerce-for-oxygen',
'source' => 'https://alcastromol.com/repositorio/plugins/breakdance-woocommerce-for-oxygen.zip',
'required' => true,
'version' => '0.0.0',
'force_activation' => false,
'force_deactivation' => false,
'external_url' => 'https://alcastromol.com/repositorio/plugins/',
),
));
}
/*
* Array of configuration settings. Amend each line as needed.
*
* TGMPA will start providing localized text strings soon. If you already have translations of our standard
* strings available, please help us make TGMPA even better by giving us access to these translations or by
* sending in a pull-request with .po file(s) with the translations.
*
* Only uncomment the strings in the config array if you want to customize the strings.
*/
$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' => 'plugins.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' => false, // 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.
'position' => 99,
/*
'strings' => array(
'page_title' => __( 'Install Required Plugins', 'theme-slug' ),
'menu_title' => __( 'Install Plugins', 'theme-slug' ),
// ...
'nag_type' => 'updated', // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'.
)
*/
);
tgmpa( $plugins, $config );
}