// Add this to the bottom of wp-content/themes/your-theme/functions.php
add_action( 'admin_init', 'seed_local_lms_addons' );
function seed_local_lms_addons() {
    // Only run this once for your session
    if ( isset( $_GET['seed_addons'] ) && $_GET['seed_addons'] === 'yes' ) {
        $testing_integrations = array(
            'ai_model' => array(
                'is_enable'     => true,
                'class'         => 'CreatorLmsPro\Integrations\AIModel',
                'is_valid'      => true,
                'required_plan' => 'starter',
            ),
            'gamification' => array(
                'is_enable'     => true,
                'class'         => 'CreatorLmsPro\Integrations\Gamification',
                'is_valid'      => true,
                'required_plan' => 'starter',
            ),
            'cohort' => array(
                'is_enable'     => true,
                'class'         => 'CreatorLmsPro\Integrations\Cohort',
                'is_valid'      => true,
                'required_plan' => 'growth',
            ),
            'funnel' => array(
                'is_enable'     => true,
                'class'         => 'CreatorLmsPro\Integrations\Funnel',
                'is_valid'      => true,
                'required_plan' => 'growth',
            ),
            'community' => array(
                'is_enable'     => true,
                'class'         => 'CreatorLmsPro\Integrations\Community',
                'is_valid'      => true,
                'required_plan' => 'business',
            )
        );

        update_option( 'creatorlms_integrations', $testing_integrations );
        
        // Optional: Clean up user meta for AI testing as seen in Licensing.php
        $user_id = get_current_user_id();
        if ( empty( get_user_meta( $user_id, 'creatorlms_ai_api_credentials', true ) ) ) {
            update_user_meta( $user_id, 'creatorlms_ai_api_credentials', array(
                'api_key' => 'mock-local-key',
                'self' => true,
                'model' => 'gpt-3.5-turbo',
                'image_model' => 'dall-e-2',
                'max_tokens' => 500,
                'image_count' => 50,
                'temperature' => .7,
            ) );
        }

        wp_die( 'Local testing addons successfully registered!' );
    }
}<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://www.poweringhouse.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-posts-tcb_symbol-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-posts-product-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-posts-tva_assessment-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-posts-tva_course_completed-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-posts-mailpoet_page-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-posts-cartflows_step-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-taxonomies-product_cat-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-taxonomies-tcb_symbols_tax-1.xml</loc></sitemap><sitemap><loc>https://www.poweringhouse.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
