=== AISmart Content Studio === Contributors: aismartcontent Tags: ai, content, onboarding, multilingual, token Requires at least: 6.4 Tested up to: 7.0 Requires PHP: 8.1 Stable tag: 2.15.9 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html AISmart Content Studio connects your WordPress site to AISmartContent to manage AI content workflows, onboarding, and token usage from the WordPress admin. == Description == AISmart Content Studio provides a WordPress admin interface for connecting a site to AISmartContent, onboarding a workspace, and operating content/token workflows from one dashboard. Key capabilities: * Guided onboarding flow for first-time setup. * Searchable Studio Help with independent guides for posts, translation, content, media, scheduling, and credits. * Optional selected-box AI tools for WordPress post and page editors, including the Block Editor, Classic Editor, WPBakery, Elementor, and Avada. * Backend and Frontend choices for Quick Add New Post, with manual operation controls. * Automatic app environment sync from WordPress configuration (no manual .env editing per site). * Workspace-aware token and usage operations from admin pages. * Multilingual integration support for translation workflows. * Optional Paid Memberships Pro sync with an explicitly configured plan mapping, plus an AISmart pricing shortcode. * Hardened API transport with signed requests and TLS verification. * WordPress-native admin pages with secure outbound launch links for cloud actions (no embedded admin iframe). This plugin is intended for site administrators and agency operators who need centralized control of AISmartContent integration per WordPress site. == External Services == The plugin connects to https://aismartcontent.co (Main) and https://studio.aismartcontent.co (token management and pricing). Administrators explicitly connect a site or start cloud workflows. WordPress sends the site URL/domain, AISmart account email and connector token during connection; generation and translation send the selected text, prompts, language codes, media requests, workspace context, and request metadata to Main. Main/Studio authenticate the workspace and handle provider credentials and credit accounting on their servers. WordPress does not send these requests to an AI provider directly or substitute a stock image when generation fails. The optional `[aismart_live_pricing]` shortcode fetches public plan details from Studio when its page is viewed; the request contains no visitor account or content payload. A separately configured membership-sync endpoint can receive an authenticated plan update from Main for a specific WordPress user email and an explicitly mapped Paid Memberships Pro level; it is inactive without that mapping and a site-side sync credential. AISmart admin pages load a support chat script from https://client.crisp.chat when an administrator opens them. The support provider receives normal browser connection data, and information entered into its chat is handled by Crisp. Admin screens may also load a plugin icon from an AISmartContent S3 media host. Opening an optional SocialPost or TeleWhats link leaves the WordPress admin; neither service is contacted by the plugin for AI generation. AISmartContent service: https://aismartcontent.co AISmartContent privacy policy: https://aismartcontent.co/privacy-policy Crisp privacy policy: https://crisp.chat/en/privacy/ == Installation == 1. Upload the plugin folder to `/wp-content/plugins/` or install the plugin zip from WordPress admin. 2. Activate AISmart Content Studio in WordPress admin. 3. Sign in at https://studio.aismartcontent.co/?studio=api-tokens and open Account > API Tokens. 4. Generate a token for a Main workspace that you own. Copy the token when it is shown; it cannot be revealed again. 5. Open `AISmart Content Studio > Onboarding` in WordPress, enter your AISmart account email and token, then click Connect. 6. The plugin links the site and workspace automatically. Your AISmart email can differ from your WordPress admin email; no password or workspace ID is required in the connection form. 7. Google and email-link sign-in remain available under Other sign-in options. Use the dashboard and related pages to configure workspace behavior after connecting. == Frequently Asked Questions == = Do I need SSH/Composer on shared hosting? = Normally no for this packaged release because dependencies are bundled in the plugin. = Does this plugin call OpenAI or Gemini directly from WordPress? = No. This plugin is designed to call AISmartContent APIs, and AISmartContent handles downstream provider operations. = Where are credentials stored? = Onboarding and signing configuration is stored in WordPress options. Runtime app configuration is synced for plugin runtime execution. = Can I manage connection tokens in Studio? = Yes. Account > API Tokens shows each token's Main workspace, creation date, expiry, and status. Tokens are revealed only at creation. Revoke a token there to stop sites using it, then generate and paste a new token to reconnect. Switching your interactive Studio workspace does not move an existing token to another workspace. = Do I need a membership or pricing plugin? = No. The pricing shortcode `[aismart_live_pricing]` is optional. Membership synchronization requires Paid Memberships Pro, an explicit `aismart_plan_map` option for the site's real plan IDs, and a trusted site-side sync credential. Without those settings, no membership level is assigned. == Screenshots == 1. Onboarding page 2. Dashboard page 3. Usage management page == Changelog == = 2.15.9 = * Connect using an AISmart account email and Studio-generated workspace token; existing Google and email-link options remain available. * Edit selected text and media boxes in WordPress and supported page builders without replacing the surrounding page. * Add a read-only Credits & Top-Up Help guide and translated plugin controls, including right-to-left support for Arabic and Hebrew. * Clarify the Fix Demo, optional Rewrite, and Translate workflow in Content Manager. * Add optional site-configured membership synchronization and a live pricing shortcode. * Preserve existing work and show an error or incomplete-image warning when cloud generation cannot complete; do not substitute locally generated copy or stock images. * Improve administrator menu access and restrict direct access to bundled runtime paths. = 2.15.8 = * Improved routing consistency between the WordPress AI connector and AISmartContent services. = 2.15.7 = * Added visible 0-100% progress for AI content, media, and one-click post generation. * Keeps generation pending until a successful response is received and shows an error state when a request cannot complete. = 2.15.6 = * Added searchable Studio Help with five independent quick guides. * Added Backend and Frontend choices for Quick Add New Post. * Added guide highlights and manual instruction progress without automatically starting operations. * Added short-term guide recovery and a responsive desktop/mobile help dock. = 2.15.4 = * Added guided account recovery when AI generation needs additional plan access or credits. * Preserved drafts and form settings while administrators update their accounts. * Improved Content Manager and connection reliability. = 2.15.3 = * Improved paid AI generation reliability across content, image, and translation workflows. * Added smarter automatic AI routing. * Improved credit accuracy and account balance updates. * Improved onboarding, post controls, and usage dashboard reliability. = 2.15.2 = * Fixed Google One Tap onboarding reliability and aligned its redirect flow with the sign-in link flow. = 2.15.1 = * Simplified onboarding with Connect, Google One Tap, and email sign-in link options. * Routed magic-link delivery through the configured account service. = 2.15.0 = * Improved premium article structures, visual captions, and Rewrite progress handling. = 2.14.0 = * Added Rewrite options for refreshed featured and in-content visuals. = 2.13.0 = * Added bulk B1-B5 selection and safer post-replacement controls for FixDemo workflows. * Improved high-volume FixDemo reliability and duplicate protection. = 2.12.2 = * Synchronized release metadata so the active plugin header version and stable tag match this release. * Finalized WordPress AI connector validation handshake hardening for more reliable provider linking. * Release alignment update for support and deployment clarity. = 1.2 = * Improved multilingual translation reliability for large language sets. * Added safer background processing for heavy translation workflows to avoid timeout-related failures. * Extended queued translation handling for high-locale workloads so create/publish responses return faster. * Hardened AJAX response handling against noisy runtime output and mixed JSON payloads. * Improved translation status accuracy for WPML projects with stricter completion checks. * Added backend queued-state exposure and frontend auto-resume polling after hard refresh. * Improved translation progress UX and overall Content Manager stability across WPML, Polylang, and TranslatePress. = 1.1 = * Improved multilingual provider compatibility and translation status reliability across Bogo, Polylang, WPML, and TranslatePress. * Fixed translation panel progress resets so in-progress translations remain accurate after refresh. * Improved translated-content visibility so existing translated topics are recognized more accurately. * Enhanced image relevance in Create Post and auto-translate workflows. * Reduced repeated and near-duplicate topic suggestions with stronger dedupe logic. * Added workspace-scoped recent topic memory (last 100) to reduce cross-session topic repetition. * Improved queue processing stability and overall Content Manager experience. = 1.0 = * Initial public package of AISmart Content Studio. * Added onboarding and workspace connection flow. * Added automatic environment sync and security hardening for packaged release.