Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
May 5
Hello world!
1 comments
// 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!' ); } }
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
Tags
Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.