esc_url_raw(rest_url()), 'nonce' => wp_create_nonce('wp_rest'), 'prompts' => EditorPrompts::all(), 'pro' => \WPWand\Core\Pro::unlocked(), 'brand' => Brand::resolve(), 'upgrade' => 'https://wpwand.com/pro-plugin', 'help' => 'https://wpwand.com/how-ai-assistant-work', 'hide_bar' => (bool) get_option('wpwand_hide_ai_bar_gutenberg', 0), ] ); if (function_exists('wp_set_script_translations')) { wp_set_script_translations(self::HANDLE, 'ai-content-generation'); } } }