Changeset 3409908
- Timestamp:
- 12/03/2025 05:16:46 PM (4 months ago)
- Location:
- ai-builder
- Files:
-
- 14 added
- 5 edited
- 35 copied
-
tags/2.3.0 (copied) (copied from ai-builder/trunk)
-
tags/2.3.0/admin/menu.php (copied) (copied from ai-builder/trunk/admin/menu.php) (2 diffs)
-
tags/2.3.0/admin/pages/agent-chat.php (added)
-
tags/2.3.0/admin/pages/credits.php (copied) (copied from ai-builder/trunk/admin/pages/credits.php) (1 diff)
-
tags/2.3.0/admin/pages/multi-page.php (copied) (copied from ai-builder/trunk/admin/pages/multi-page.php)
-
tags/2.3.0/admin/pages/settings.php (copied) (copied from ai-builder/trunk/admin/pages/settings.php)
-
tags/2.3.0/admin/pages/translation-settings.php (copied) (copied from ai-builder/trunk/admin/pages/translation-settings.php)
-
tags/2.3.0/admin/pages/tuto.php (copied) (copied from ai-builder/trunk/admin/pages/tuto.php) (2 diffs)
-
tags/2.3.0/aibui-builder.php (copied) (copied from ai-builder/trunk/aibui-builder.php) (5 diffs)
-
tags/2.3.0/assets/css/account.css (copied) (copied from ai-builder/trunk/assets/css/account.css)
-
tags/2.3.0/assets/css/credits.css (copied) (copied from ai-builder/trunk/assets/css/credits.css)
-
tags/2.3.0/assets/css/language-switcher.css (copied) (copied from ai-builder/trunk/assets/css/language-switcher.css)
-
tags/2.3.0/assets/css/multi-page.css (copied) (copied from ai-builder/trunk/assets/css/multi-page.css)
-
tags/2.3.0/assets/css/translation.css (copied) (copied from ai-builder/trunk/assets/css/translation.css)
-
tags/2.3.0/assets/js/agent-chat.js (added)
-
tags/2.3.0/assets/js/chat-widget.js (copied) (copied from ai-builder/trunk/assets/js/chat-widget.js)
-
tags/2.3.0/assets/js/credits.js (copied) (copied from ai-builder/trunk/assets/js/credits.js)
-
tags/2.3.0/assets/js/language-switcher-block.js (copied) (copied from ai-builder/trunk/assets/js/language-switcher-block.js)
-
tags/2.3.0/assets/js/multi-page-apply.js (copied) (copied from ai-builder/trunk/assets/js/multi-page-apply.js)
-
tags/2.3.0/assets/js/multi-page.js (copied) (copied from ai-builder/trunk/assets/js/multi-page.js)
-
tags/2.3.0/assets/js/pattern-translation.js (copied) (copied from ai-builder/trunk/assets/js/pattern-translation.js)
-
tags/2.3.0/assets/js/settings.js (copied) (copied from ai-builder/trunk/assets/js/settings.js)
-
tags/2.3.0/assets/js/src/editor-blocks/ai-block/ai-block.js (copied) (copied from ai-builder/trunk/assets/js/src/editor-blocks/ai-block/ai-block.js)
-
tags/2.3.0/assets/js/translation.js (copied) (copied from ai-builder/trunk/assets/js/translation.js)
-
tags/2.3.0/composer.json (copied) (copied from ai-builder/trunk/composer.json)
-
tags/2.3.0/composer.lock (copied) (copied from ai-builder/trunk/composer.lock)
-
tags/2.3.0/debug-language.log (copied) (copied from ai-builder/trunk/debug-language.log)
-
tags/2.3.0/debug-template-part.log (copied) (copied from ai-builder/trunk/debug-template-part.log)
-
tags/2.3.0/debug-unescape.log (copied) (copied from ai-builder/trunk/debug-unescape.log)
-
tags/2.3.0/includes/class-agent-chat-handler.php (added)
-
tags/2.3.0/includes/class-agent-discovery-service.php (added)
-
tags/2.3.0/includes/class-agent-execution-service.php (added)
-
tags/2.3.0/includes/class-agent-security-service.php (added)
-
tags/2.3.0/includes/class-ajax-handler.php (copied) (copied from ai-builder/trunk/includes/class-ajax-handler.php)
-
tags/2.3.0/includes/class-css-handler.php (copied) (copied from ai-builder/trunk/includes/class-css-handler.php)
-
tags/2.3.0/includes/class-translation-handler.php (copied) (copied from ai-builder/trunk/includes/class-translation-handler.php)
-
tags/2.3.0/includes/class-translation-manager.php (copied) (copied from ai-builder/trunk/includes/class-translation-manager.php)
-
tags/2.3.0/includes/class-translation-settings.php (copied) (copied from ai-builder/trunk/includes/class-translation-settings.php)
-
tags/2.3.0/includes/class-translation-switcher.php (copied) (copied from ai-builder/trunk/includes/class-translation-switcher.php)
-
tags/2.3.0/package-lock.json (added)
-
tags/2.3.0/readme.txt (copied) (copied from ai-builder/trunk/readme.txt) (1 diff)
-
tags/2.3.0/templates (copied) (copied from ai-builder/trunk/templates)
-
trunk/admin/menu.php (modified) (2 diffs)
-
trunk/admin/pages/agent-chat.php (added)
-
trunk/admin/pages/credits.php (modified) (1 diff)
-
trunk/admin/pages/tuto.php (modified) (2 diffs)
-
trunk/aibui-builder.php (modified) (5 diffs)
-
trunk/assets/js/agent-chat.js (added)
-
trunk/includes/class-agent-chat-handler.php (added)
-
trunk/includes/class-agent-discovery-service.php (added)
-
trunk/includes/class-agent-execution-service.php (added)
-
trunk/includes/class-agent-security-service.php (added)
-
trunk/package-lock.json (added)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ai-builder/tags/2.3.0/admin/menu.php
r3404221 r3409908 11 11 add_submenu_page('aibui-assistant', 'Tutorial', 'Tutorial', 'manage_options', 'aibui-tuto', 'aibui_page_tuto'); 12 12 add_submenu_page('aibui-assistant', 'Multi Page Generator', 'Multi Page Generator', 'manage_options', 'aibui-multi-page', 'aibui_page_multi_page'); 13 add_submenu_page('aibui-assistant', 'Site Copilot', 'Site Copilot', 'manage_options', 'aibui-agent-chat', 'aibui_page_agent_chat'); 13 14 add_submenu_page('aibui-assistant', 'Translations', 'Translations', 'manage_options', 'aibui-translation-settings', 'aibui_page_translation_settings'); 14 15 add_submenu_page('aibui-assistant', 'Reset Password', 'Reset Password', 'manage_options', 'aibui-reset-password', 'aibui_page_reset_password'); … … 51 52 include plugin_dir_path(__FILE__) . 'pages/reset-password.php'; 52 53 } 54 55 function aibui_page_agent_chat() 56 { 57 include plugin_dir_path(__FILE__) . 'pages/agent-chat.php'; 58 } -
ai-builder/tags/2.3.0/admin/pages/credits.php
r3408247 r3409908 258 258 259 259 <div class="ai-section-header" style="margin-bottom: 120px;"> 260 </div>260 </div> 261 261 </div> 262 262 -
ai-builder/tags/2.3.0/admin/pages/tuto.php
r3406101 r3409908 102 102 <p>Translate your pages and posts into multiple languages with AI</p> 103 103 </div> 104 105 <div class="ai-feature-card"> 106 <div class="ai-feature-icon"> 107 <svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 108 <path d="M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 109 <path d="M8 9H16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 110 <path d="M8 13H12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 111 </svg> 112 </div> 113 <h3>Site Copilot</h3> 114 <p>AI-powered assistant to manage and operate your WordPress site</p> 115 </div> 104 116 </div> 105 117 </div> … … 358 370 <div class="ai-tip-content"> 359 371 <strong>Pro Tip:</strong> Translated pages are automatically linked together. Use the Language Switcher block on your frontend to let visitors switch between languages. You can also translate headers and footers from the Site Editor by clicking the "Translate with AI" button in the bottom-right corner. 372 </div> 373 </div> 374 </div> 375 </div> 376 377 <!-- Site Copilot --> 378 <div class="ai-instruction-card"> 379 <div class="ai-instruction-header"> 380 <div class="ai-instruction-icon"> 381 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 382 <path d="M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 383 <path d="M8 9H16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 384 <path d="M8 13H12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 385 </svg> 386 </div> 387 <div class="ai-instruction-title"> 388 <h3>6. Site Copilot - AI Assistant for WordPress</h3> 389 <p>Manage your WordPress site through natural language conversations</p> 390 </div> 391 </div> 392 <div class="ai-instruction-content"> 393 <div class="ai-step"> 394 <div class="ai-step-number">1</div> 395 <div class="ai-step-content"> 396 <h4>Access Site Copilot</h4> 397 <p>Navigate to <strong>AI Builder → Site Copilot</strong> in your WordPress admin menu. This opens a ChatGPT-like interface where you can interact with your WordPress site</p> 398 </div> 399 </div> 400 <div class="ai-step"> 401 <div class="ai-step-number">2</div> 402 <div class="ai-step-content"> 403 <h4>Ask Questions or Give Commands</h4> 404 <p>Type natural language requests like "List my recent posts", "Show all pages", "List categories", "Update post #123 title to 'New Title'", or "Show pending comments". Site Copilot understands context and can perform complex operations</p> 405 </div> 406 </div> 407 <div class="ai-step"> 408 <div class="ai-step-number">3</div> 409 <div class="ai-step-content"> 410 <h4>Watch Real-Time Execution</h4> 411 <p>When Site Copilot needs to use WordPress tools, you'll see "Executing: [tool name]" messages appear in real-time. Once complete, they change to "Executed: [tool name]" with a checkmark</p> 412 </div> 413 </div> 414 <div class="ai-step"> 415 <div class="ai-step-number">4</div> 416 <div class="ai-step-content"> 417 <h4>Manage API Access (Settings Tab)</h4> 418 <p>Click the "Settings" tab to control which WordPress REST API routes Site Copilot can access. Search for routes, enable/disable them by namespace, and ensure only safe operations are allowed. This gives you fine-grained control over what the AI can do</p> 419 </div> 420 </div> 421 <div class="ai-tip"> 422 <div class="ai-tip-icon">💡</div> 423 <div class="ai-tip-content"> 424 <strong>Pro Tip:</strong> Site Copilot is perfect for content management tasks, but for creating beautifully designed pages, use the AI Page Creator chat widget (bottom-left corner when editing a page). Ask "what can you do?" to see all available capabilities. 360 425 </div> 361 426 </div> -
ai-builder/tags/2.3.0/aibui-builder.php
r3408247 r3409908 4 4 * Plugin URI: https://website-ai-builder.com/ 5 5 * Description: This plugin is used to build your website with AI. 6 * Version: 2. 2.56 * Version: 2.3.0 7 7 * Author: enkic 8 8 * Author URI: https://enkicorbin.fr/ … … 18 18 19 19 // Définir la version du plugin 20 define('AIBUI_VERSION', '2. 2.5');20 define('AIBUI_VERSION', '2.3.0'); 21 21 22 22 // Simple CSS minifier (safe whitespace/comment removal) … … 265 265 require_once plugin_dir_path(__FILE__) . 'includes/class-translation-switcher.php'; 266 266 267 // Charger les services de l'Agent Chat 268 require_once plugin_dir_path(__FILE__) . 'includes/class-agent-discovery-service.php'; 269 require_once plugin_dir_path(__FILE__) . 'includes/class-agent-security-service.php'; 270 require_once plugin_dir_path(__FILE__) . 'includes/class-agent-execution-service.php'; 271 require_once plugin_dir_path(__FILE__) . 'includes/class-agent-chat-handler.php'; 272 267 273 // Initialiser le gestionnaire de traduction 268 274 new AIBUI_Translation_Handler(); … … 270 276 $translation_manager = new AIBUI_Translation_Manager(); 271 277 $translation_switcher = new AIBUI_Translation_Switcher($translation_manager); 278 279 // Initialiser le gestionnaire de l'Agent Chat 280 new AIBUI_Agent_Chat_Handler(); 272 281 273 282 add_action('admin_enqueue_scripts', function ($hook) { … … 513 522 'nonce' => wp_create_nonce('aibui_nonce'), 514 523 'adminBaseUrl' => admin_url(), 524 ) 525 ); 526 } else if ($current_screen && strpos($current_screen->id, 'aibui-agent-chat') !== false) { 527 // Agent Chat page scripts and styles 528 wp_enqueue_script( 529 'ai-builder-config', 530 plugin_dir_url(__FILE__) . 'config.js', 531 [], 532 AIBUI_VERSION, 533 true 534 ); 535 wp_enqueue_script( 536 'ai-builder-agent-chat', 537 plugin_dir_url(__FILE__) . 'assets/js/agent-chat.js', 538 ['ai-builder-config'], 539 AIBUI_VERSION, 540 true 541 ); 542 // Localize with nonce - IMPORTANT: use a different nonce for agent actions 543 wp_localize_script( 544 'ai-builder-agent-chat', 545 'aibuiAgentVars', 546 array( 547 'ajaxurl' => admin_url('admin-ajax.php'), 548 'nonce' => wp_create_nonce('aibui_agent_nonce'), 549 'restBase' => esc_url_raw(rest_url()), 550 'wpRestDocsBase' => 'https://developer.wordpress.org/rest-api/reference/', 551 ) 552 ); 553 // Also expose standard AJAX nonce for shared endpoints like aibui_get_token 554 wp_localize_script( 555 'ai-builder-agent-chat', 556 'aiBuilderVars', 557 array( 558 'ajaxurl' => admin_url('admin-ajax.php'), 559 'nonce' => wp_create_nonce('aibui_nonce'), 515 560 ) 516 561 ); -
ai-builder/tags/2.3.0/readme.txt
r3408247 r3409908 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 2. 2.57 Stable tag: 2.3.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
ai-builder/trunk/admin/menu.php
r3404221 r3409908 11 11 add_submenu_page('aibui-assistant', 'Tutorial', 'Tutorial', 'manage_options', 'aibui-tuto', 'aibui_page_tuto'); 12 12 add_submenu_page('aibui-assistant', 'Multi Page Generator', 'Multi Page Generator', 'manage_options', 'aibui-multi-page', 'aibui_page_multi_page'); 13 add_submenu_page('aibui-assistant', 'Site Copilot', 'Site Copilot', 'manage_options', 'aibui-agent-chat', 'aibui_page_agent_chat'); 13 14 add_submenu_page('aibui-assistant', 'Translations', 'Translations', 'manage_options', 'aibui-translation-settings', 'aibui_page_translation_settings'); 14 15 add_submenu_page('aibui-assistant', 'Reset Password', 'Reset Password', 'manage_options', 'aibui-reset-password', 'aibui_page_reset_password'); … … 51 52 include plugin_dir_path(__FILE__) . 'pages/reset-password.php'; 52 53 } 54 55 function aibui_page_agent_chat() 56 { 57 include plugin_dir_path(__FILE__) . 'pages/agent-chat.php'; 58 } -
ai-builder/trunk/admin/pages/credits.php
r3408247 r3409908 258 258 259 259 <div class="ai-section-header" style="margin-bottom: 120px;"> 260 </div>260 </div> 261 261 </div> 262 262 -
ai-builder/trunk/admin/pages/tuto.php
r3406101 r3409908 102 102 <p>Translate your pages and posts into multiple languages with AI</p> 103 103 </div> 104 105 <div class="ai-feature-card"> 106 <div class="ai-feature-icon"> 107 <svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 108 <path d="M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 109 <path d="M8 9H16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 110 <path d="M8 13H12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 111 </svg> 112 </div> 113 <h3>Site Copilot</h3> 114 <p>AI-powered assistant to manage and operate your WordPress site</p> 115 </div> 104 116 </div> 105 117 </div> … … 358 370 <div class="ai-tip-content"> 359 371 <strong>Pro Tip:</strong> Translated pages are automatically linked together. Use the Language Switcher block on your frontend to let visitors switch between languages. You can also translate headers and footers from the Site Editor by clicking the "Translate with AI" button in the bottom-right corner. 372 </div> 373 </div> 374 </div> 375 </div> 376 377 <!-- Site Copilot --> 378 <div class="ai-instruction-card"> 379 <div class="ai-instruction-header"> 380 <div class="ai-instruction-icon"> 381 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 382 <path d="M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 383 <path d="M8 9H16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 384 <path d="M8 13H12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> 385 </svg> 386 </div> 387 <div class="ai-instruction-title"> 388 <h3>6. Site Copilot - AI Assistant for WordPress</h3> 389 <p>Manage your WordPress site through natural language conversations</p> 390 </div> 391 </div> 392 <div class="ai-instruction-content"> 393 <div class="ai-step"> 394 <div class="ai-step-number">1</div> 395 <div class="ai-step-content"> 396 <h4>Access Site Copilot</h4> 397 <p>Navigate to <strong>AI Builder → Site Copilot</strong> in your WordPress admin menu. This opens a ChatGPT-like interface where you can interact with your WordPress site</p> 398 </div> 399 </div> 400 <div class="ai-step"> 401 <div class="ai-step-number">2</div> 402 <div class="ai-step-content"> 403 <h4>Ask Questions or Give Commands</h4> 404 <p>Type natural language requests like "List my recent posts", "Show all pages", "List categories", "Update post #123 title to 'New Title'", or "Show pending comments". Site Copilot understands context and can perform complex operations</p> 405 </div> 406 </div> 407 <div class="ai-step"> 408 <div class="ai-step-number">3</div> 409 <div class="ai-step-content"> 410 <h4>Watch Real-Time Execution</h4> 411 <p>When Site Copilot needs to use WordPress tools, you'll see "Executing: [tool name]" messages appear in real-time. Once complete, they change to "Executed: [tool name]" with a checkmark</p> 412 </div> 413 </div> 414 <div class="ai-step"> 415 <div class="ai-step-number">4</div> 416 <div class="ai-step-content"> 417 <h4>Manage API Access (Settings Tab)</h4> 418 <p>Click the "Settings" tab to control which WordPress REST API routes Site Copilot can access. Search for routes, enable/disable them by namespace, and ensure only safe operations are allowed. This gives you fine-grained control over what the AI can do</p> 419 </div> 420 </div> 421 <div class="ai-tip"> 422 <div class="ai-tip-icon">💡</div> 423 <div class="ai-tip-content"> 424 <strong>Pro Tip:</strong> Site Copilot is perfect for content management tasks, but for creating beautifully designed pages, use the AI Page Creator chat widget (bottom-left corner when editing a page). Ask "what can you do?" to see all available capabilities. 360 425 </div> 361 426 </div> -
ai-builder/trunk/aibui-builder.php
r3408247 r3409908 4 4 * Plugin URI: https://website-ai-builder.com/ 5 5 * Description: This plugin is used to build your website with AI. 6 * Version: 2. 2.56 * Version: 2.3.0 7 7 * Author: enkic 8 8 * Author URI: https://enkicorbin.fr/ … … 18 18 19 19 // Définir la version du plugin 20 define('AIBUI_VERSION', '2. 2.5');20 define('AIBUI_VERSION', '2.3.0'); 21 21 22 22 // Simple CSS minifier (safe whitespace/comment removal) … … 265 265 require_once plugin_dir_path(__FILE__) . 'includes/class-translation-switcher.php'; 266 266 267 // Charger les services de l'Agent Chat 268 require_once plugin_dir_path(__FILE__) . 'includes/class-agent-discovery-service.php'; 269 require_once plugin_dir_path(__FILE__) . 'includes/class-agent-security-service.php'; 270 require_once plugin_dir_path(__FILE__) . 'includes/class-agent-execution-service.php'; 271 require_once plugin_dir_path(__FILE__) . 'includes/class-agent-chat-handler.php'; 272 267 273 // Initialiser le gestionnaire de traduction 268 274 new AIBUI_Translation_Handler(); … … 270 276 $translation_manager = new AIBUI_Translation_Manager(); 271 277 $translation_switcher = new AIBUI_Translation_Switcher($translation_manager); 278 279 // Initialiser le gestionnaire de l'Agent Chat 280 new AIBUI_Agent_Chat_Handler(); 272 281 273 282 add_action('admin_enqueue_scripts', function ($hook) { … … 513 522 'nonce' => wp_create_nonce('aibui_nonce'), 514 523 'adminBaseUrl' => admin_url(), 524 ) 525 ); 526 } else if ($current_screen && strpos($current_screen->id, 'aibui-agent-chat') !== false) { 527 // Agent Chat page scripts and styles 528 wp_enqueue_script( 529 'ai-builder-config', 530 plugin_dir_url(__FILE__) . 'config.js', 531 [], 532 AIBUI_VERSION, 533 true 534 ); 535 wp_enqueue_script( 536 'ai-builder-agent-chat', 537 plugin_dir_url(__FILE__) . 'assets/js/agent-chat.js', 538 ['ai-builder-config'], 539 AIBUI_VERSION, 540 true 541 ); 542 // Localize with nonce - IMPORTANT: use a different nonce for agent actions 543 wp_localize_script( 544 'ai-builder-agent-chat', 545 'aibuiAgentVars', 546 array( 547 'ajaxurl' => admin_url('admin-ajax.php'), 548 'nonce' => wp_create_nonce('aibui_agent_nonce'), 549 'restBase' => esc_url_raw(rest_url()), 550 'wpRestDocsBase' => 'https://developer.wordpress.org/rest-api/reference/', 551 ) 552 ); 553 // Also expose standard AJAX nonce for shared endpoints like aibui_get_token 554 wp_localize_script( 555 'ai-builder-agent-chat', 556 'aiBuilderVars', 557 array( 558 'ajaxurl' => admin_url('admin-ajax.php'), 559 'nonce' => wp_create_nonce('aibui_nonce'), 515 560 ) 516 561 ); -
ai-builder/trunk/readme.txt
r3408247 r3409908 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 2. 2.57 Stable tag: 2.3.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.