network_activate($network_wide); // Create privacy policy page $aizl_privacy = \AIZLabs\ChatAgent\Article::privacy_policy(); $aizl_privacy->create_page($network_wide); // Create custom function page $aizl_custom_function = \AIZLabs\ChatAgent\Article::custom_function_doc(); $aizl_custom_function->create_page($network_wide); // Create uploads folder for scanned content $upload_dir = wp_upload_dir(); $aizlabs_dir = $upload_dir['basedir'] . '/aizlabs-chat-agent'; if (!file_exists($aizlabs_dir)) { wp_mkdir_p($aizlabs_dir); } } register_activation_hook(__FILE__, __NAMESPACE__ . '\\aizl_agent_activate'); add_action('init', ['\\AIZLabs\\ChatAgent\\Article', 'register_shortcodes']); // Initialize the plugin function aizl_agent_init() { // Check if API configuration is complete if (!\AIZLabs\ChatAgent\Config::is_api_configured()) { add_action('admin_notices', function() { echo wp_kses_post('
AIZLabs Chat Agent: Please configure the API Gateway settings in config.php. Replace YOUR_API_GATEWAY_KEY_HERE with the valid API key.
AIZLabs Chat Agent - External Service Required: This plugin requires an active API key from AI Zone Labs to function. User data will be transmitted to external services for AI processing. Please review our Terms of Service and Privacy Policy. To obtain an API key, visit aizlabs.com.