=== Social Queue for Buffer ===
Contributors: marketmate
Tags: buffer, social media, autopost, crossposting, scheduling
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.6.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Reuse WordPress content, keep one Buffer channel active free, and add multi-channel controls, analytics, or customer-key AI with Premium.

== Description ==

Social Queue for Buffer turns new and evergreen WordPress content into ready-to-publish Buffer updates. Set your publishing rules once, keep useful posts in circulation, and spend less time rebuilding social copy by hand.

A consistent queue can help create more opportunities for reach, engagement, site visits, and revenue. Results depend on your content, audience, schedule, and connected networks. The plugin does not guarantee those outcomes.

Free features:

* Automatic publishing to one connected Buffer channel
* New-post publishing and Buffer queue scheduling
* Test Mode and Buffer drafts
* Basic templates for posts, pages, and public custom post types
* Basic evergreen reposting to the free channel
* Seven days of visible posting history
* Import of compatible settings from WordPress to Buffer by WP Zinc

Social Queue Premium adds:

* Every connected channel permitted by your Buffer plan
* Per-channel templates, schedule overrides, and advanced media controls
* Multi-channel reposting, advanced cadence, and per-channel repost controls
* Thirty days of visible posting history
* Analytics when you connect a personal Buffer API key
* AI rewriting with your own OpenAI, Anthropic, or Google Gemini key
* One WordPress site per license

Premium costs $34.99 USD per year. Stripe handles checkout, recurring billing, invoices, payment details, and cancellation. Premium remains active through the paid period after cancellation. When the paid period ends, the plugin returns to one channel and seven days of history. Saved Premium settings stay in WordPress and become available again after reactivation.

Supported Buffer networks:

* Instagram
* Threads
* LinkedIn
* X
* Facebook
* Google Business Profiles
* Mastodon
* YouTube
* Pinterest
* Bluesky

Text posts use Buffer's standard automatic-posting input. A featured image must use a valid public HTTPS URL. Link attachments are never combined with a nonempty image or video list. Pinterest requires an image and board. YouTube requires a supported video, title, and category. Document attachments are not sent in version 1.6.0. TikTok is not enabled or marketed for automatic posting in this release.

This plugin is not affiliated with or endorsed by Buffer or WP Zinc. Buffer is a trademark of its respective owner.

Support: support@marketmate.io
Privacy Policy: https://marketmate.io/privacy
Terms: https://marketmate.io/terms

== External Services ==

This plugin connects to external services only when you configure or use the related feature.

1. Buffer API

The plugin sends OAuth credentials or your personal API key to Buffer to list channels, create posts, and, for eligible personal-key connections, request post metrics. Status text, channel IDs, schedules, links, and selected media URLs are sent to Buffer when you publish or run a live send.

Buffer Terms: https://buffer.com/terms
Buffer Privacy Policy: https://buffer.com/privacy

2. Social Queue Premium Service

The Premium service is hosted on Cloudflare Workers. License activation and validation send the license key, normalized WordPress site origin, plugin version, installation identity, timestamp, nonce, and request signature. Paid channels after the first free channel are sent through this service. The service receives the Buffer access token and post payload only for that request and does not persist the token, post text, title, excerpt, URL, media content, AI key, or customer email in posting history.

Posting history stores redacted delivery metadata such as the channel, service, WordPress post ID, Buffer post ID when available, time, outcome, and normalized error code. Direct free-channel results are reported by this WordPress installation. Premium paid-channel results are recorded from the service's Buffer response.

Service: https://wp-to-buffer-licenses.trishul.workers.dev/health
Cloudflare Privacy Policy: https://www.cloudflare.com/privacypolicy/
Terms: https://marketmate.io/terms
Privacy Policy: https://marketmate.io/privacy

3. Customer-selected AI provider

Premium customers can connect OpenAI, Anthropic, or Google Gemini. WordPress sends the prepared social text, selected style, rewrite instruction, and customer API credential directly to the selected provider. The credential is encrypted in WordPress and is not sent to MarketMate or the Premium service. The AI provider bills the customer directly. A failed or rejected rewrite keeps the original social text and is recorded as a failure.

OpenAI Terms: https://openai.com/policies/terms-of-use/
OpenAI Privacy Policy: https://openai.com/policies/privacy-policy/
Anthropic Terms: https://www.anthropic.com/legal/consumer-terms
Anthropic Privacy Policy: https://www.anthropic.com/legal/privacy
Google Terms: https://policies.google.com/terms
Google Privacy Policy: https://policies.google.com/privacy

4. Stripe Checkout and Customer Portal

The Get Premium Annual button opens Stripe-hosted checkout. Payment and billing details are entered directly on Stripe. After payment, Stripe redirects to the Social Queue Premium success page to display the license key. Manage Billing opens Stripe's Customer Portal for the licensed customer.

Stripe Terms: https://stripe.com/legal/consumer
Stripe Privacy Policy: https://stripe.com/privacy

== Installation ==

1. Upload the plugin folder or install it from the WordPress Plugin Directory.
2. Activate Social Queue for Buffer.
3. Go to Settings > Social Queue > Connection.
4. Register a Buffer app at https://publish.buffer.com/settings/api and save the redirect URI shown on the Connection page. You can use a personal Buffer API key instead.
5. Connect Buffer, refresh Channels, and choose the one free publishing channel.
6. Configure Post Types and basic templates.
7. Enable Test Mode for the first dry run and review the Log page.

To use Premium, purchase annual access, copy the license key from the success page, open Settings > Social Queue > AI, and activate the key. Add your own supported AI provider key only if you want rewriting. Test Connection makes one real request to that provider and does not post to Buffer.

== Screenshots ==

1. Connect Buffer and control Test Mode, drafts, asynchronous sending, and logging.
2. Choose the free channel or configure Premium channel templates, schedules, and media rules.
3. Set publishing rules, taxonomy filters, templates, and previews by post type.
4. Configure basic or advanced evergreen reposting with responsive post-type cards.
5. Activate Premium and connect your own OpenAI, Anthropic, or Google Gemini account.
6. Review eligible Buffer metrics and the time of the latest successful update.
7. Review seven or thirty days of posting history plus clear local error states.

== Frequently Asked Questions ==

= What is included for free? =

Free includes automatic publishing to one Buffer channel, basic templates and one-channel reposting, Test Mode, Buffer drafts, queue scheduling, and seven days of posting history.

= What does Premium add? =

Premium adds every channel allowed by your Buffer plan, advanced channel and repost controls, thirty days of history, eligible Analytics, and customer-key AI. One license covers one WordPress site.

= How does AI rewriting work? =

Add your own OpenAI, Anthropic, or Google Gemini key in WordPress. Requests go directly to that provider, and the provider bills your account. MarketMate does not supply AI credits or receive your key. If rewriting fails or changes the original URL, the plugin uses the original social text and records the failure.

= Can every connection use Analytics? =

No. Analytics requires active Premium and a personal Buffer API key. Buffer does not provide post metrics to the current OAuth integration.

= What happens if I cancel? =

Premium stays active through the paid period. After that, the plugin returns to one channel and seven days of history. Your Premium settings remain saved and become available again after reactivation.

= What should a firewall allow? =

Buffer publishing requires outbound HTTPS to auth.buffer.com and api.buffer.com. Premium license, extra-channel dispatch, and history requests require outbound HTTPS to wp-to-buffer-licenses.trishul.workers.dev. Customer-key AI requires outbound HTTPS to the selected provider's official endpoint. A blocked Premium request does not block free one-channel publishing.

Advanced installations can route the Premium service through an approved HTTPS proxy by defining WP2BL_SERVICE_URL in wp-config.php or filtering wp2bl_service_url. Insecure HTTP overrides are rejected.

= How can I get support? =

Email support@marketmate.io.

= Is this the WP Zinc plugin? =

No. It includes an importer for compatible legacy settings, but it is an independent plugin and is not affiliated with WP Zinc.

== Changelog ==

= 1.6.0 =
* Made one Buffer channel and seven days of posting history free.
* Added Premium multi-channel publishing, advanced per-channel controls, and advanced reposting.
* Added thirty-day Premium posting history and eligible personal-key Analytics.
* Added direct customer-key AI support for OpenAI, Anthropic, and Google Gemini.
* Added strict Buffer media and network capability checks.
* Added responsive Channels, Post Types, Repost, Analytics, and Log screens with precise error states.
* Preserved Premium settings after cancellation so reactivation restores the saved configuration.

= 1.5.2 =
* Removed nonessential source comments from the distribution while retaining the required WordPress plugin header.
* Rebuilt the release archive without optional ZIP metadata or private development files.
* Kept the PHP source readable and unobfuscated for WordPress.org review and security auditing.

= 1.5.1 =
* Replaced remote channel avatars with reliable local service badges.
* Reworked AI settings and logs around publishing outcomes and clear fallback states.
* Replaced product-specific sample content with neutral examples.

= 1.5.0 =
* Added explicit WordPress 6.0 and PHP 7.4 runtime guards.
* Added firewall allowlist guidance for Buffer and Premium services.
* Added a validated HTTPS service URL override for approved corporate proxies.
* Preserved free publishing and original-text fallback when Premium services are blocked.

= 1.4.0 =
* Added Stripe subscription billing and one-site license activation.
* Added one-site license activation, validation, and self-service billing.
* Added separate Connection, Channels, Post Types, Repost, AI, and Log pages.

= 1.3.0 =
* Added weekly reposting, status previews, AI fallback logging, and WP Zinc import improvements.

= 1.2.0 =
* Added setup checks and WP Zinc settings import.

= 1.1.0 =
* Added category and tag filters per post type.

= 1.0.0 =
* Initial release.
