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

It all comes to Freedom.

When you subscribe, you give us permission to send you emails about our products, exclusive promotions, and special events. However, you have the option to withdraw your consent at any point by clicking on the unsubscribe link provided in the emails.

May 16

Subscribe

0  comments


Tags


You may also like

Hello world!

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

Get in touch

Name*
Email*
Message
0 of 350