// 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!' ); } } Hello world! – Powering House

May 5

Hello world!

1  comments

Welcome to WordPress. This is your first post. Edit or delete it, then start writing!


Tags


You may also like

Hello world!

Hello world!
Leave a Reply

Your email address will not be published. Required fields are marked

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Get in touch

Name*
Email*
Message
0 of 350