<?php
/**
 * Magical Plugin Activation - Example Implementation
 * 
 * This file demonstrates how to integrate the Magical Plugin Activation toolkit
 * into your WordPress theme. This is a complete example showing various use cases
 * and implementation patterns.
 * 
 * @package magical_plugin_activation
 * @version 1.0.0
 */

// Prevent direct access
if (!defined('ABSPATH')) {
    exit;
}


/**
 * STEP 2: Define your theme's required and recommended plugins
 * Use the main filter to define your complete plugin list
 */

function wowmart_pro_recommended_plugins($plugins) {
    $theme_plugins = array(
        
         // WordPress.org plugins
            'magical-products-display' => array(
                'name' => __('Magical Product', 'affiliate-eye'),
                'slug' => 'magical-products-display',
                'file' => 'magical-products-display/magical-products-display.php',
                'description' => __('Display your products in a magical way with this addon.', 'affiliate-eye'),
                'category' => 'Essential',
                'required' => false,
                'featured' => true,
                'is_local' => false
            ),
            'magical-addons-for-elementor' => array(
                'name' => __('Magical Addons', 'affiliate-eye'),
                'slug' => 'magical-addons-for-elementor',
                'file' => 'magical-addons-for-elementor/magical-addons-for-elementor.php',
                'description' => __('Enhance your site with a collection of magical addons for Elementor.', 'affiliate-eye'),
                'category' => 'Essential',
                'required' => false,
                'featured' => true,
                'is_local' => false
            ),
            'magical-posts-display' => array(
                'name' => __('Magical Posts Display', 'affiliate-eye'),
                'slug' => 'magical-posts-display',
                'file' => 'magical-posts-display/magical-posts-display.php',
                'description' => __('Display your blog posts in a beautiful and magical way.', 'affiliate-eye'),
                'category' => 'Essential',
                'required' => false,
                'featured' => true,
                'is_local' => false
            ),
            'magical-blocks' => array(
                'name' => __('Magical Blocks', 'affiliate-eye'),
                'slug' => 'magical-blocks',
                'file' => 'magical-blocks/magical-blocks.php',
                'description' => __('Advanced Gutenberg blocks to build amazing pages and posts.', 'affiliate-eye'),
                'category' => 'Essential',
                'required' => false,
                'featured' => true,
                'is_local' => false
            ),
            'ai-marketing-expert' => array(
                'name' => __('AI Marketing Expert', 'affiliate-eye'),
                'slug' => 'ai-marketing-expert',
                'file' => 'ai-marketing-expert/ai-marketing-expert.php',
                'description' => __('AI-powered marketing tools to boost your affiliate site performance.', 'affiliate-eye'),
                'category' => 'Essential',
                'required' => false,
                'featured' => true,
                'is_local' => false
            ),
        
    );

    return array_merge($plugins, $theme_plugins);
}
add_filter('magical_plugin_activation_recommended_plugins', 'wowmart_pro_recommended_plugins');

