=== Social Publisher ===
Contributors: Enfants Terribles digital GmbH
Tags: linkedin, social media, autopost, automation, ai
Requires at least: 6.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.9.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: social-publisher

Auto-publish WordPress posts to LinkedIn — with AI rewriting, Brand Voice, and scheduling. For social media managers. GDPR-compliant.

== Description ==

Stop copying your WordPress posts to LinkedIn manually.

Social Publisher does it automatically — GDPR-compliant, with custom text, image, and live preview right in your editor.

Built by an agency that got tired of the copy-paste routine. We use it ourselves, every week.

**For social media managers:** Install Social Publisher on each client's WordPress site, set a dedicated Brand Voice per client, and publish LinkedIn content directly where it's written — no extra tool, no copying between platforms. At 9 EUR/month per site, it's a fraction of what centralized scheduling tools charge.

[Plugin walkthrough (German)](https://social-publisher.enfants.de/)

### Features (Free)
- Auto-publish to LinkedIn when you hit "Publish"
- Write a dedicated LinkedIn text — separate from your blog post
- Choose a separate LinkedIn image
- Live preview of your LinkedIn post inside the editor
- Supports personal profiles and company pages
- 100% GDPR-compliant via tracking-free OAuth proxy
- Optional backlink to your post

### Pro — from 9 EUR/month
- AI rewriting with tone presets (Informative, Emotional, Salesy) and custom Brand Voice
- Schedule your LinkedIn post for a specific date and time
- Content recycling — repost evergreen content automatically
- Early adopters keep their price permanently — sign up at 9 EUR, pay 9 EUR forever

### GDPR Compliance
Social Publisher never talks to LinkedIn directly from your WordPress admin.
All OAuth traffic is routed through a tracking-free proxy at **https://social-publisher.enfants.de** — no personal data stored, fully GDPR-compliant.

== Installation ==

1. Upload the plugin directory `social-publisher` to the `/wp-content/plugins/` directory of your WordPress installation.
2. Activate the plugin via the **Plugins** menu in WordPress.
3. Open the settings under **Settings > Social Publisher** and connect your LinkedIn account.
4. When creating a new post, you can enable the **LinkedIn sharing** and set an individual text and image.

== Screenshots ==

1. Admin interface with LinkedIn sharing options
2. LinkedIn post preview in the editor
3. Successful publication of a post on LinkedIn

== Frequently Asked Questions ==

= Who is Social Publisher for? =
Anyone publishing content on WordPress who wants it on LinkedIn without the copy-paste routine — agencies, editorial teams, freelancers, and B2B marketing.

= How does publishing work? =
You write your post in WordPress and publish to LinkedIn directly from the editor. You can define a dedicated LinkedIn text, choose an image, and preview the result before publishing.

= Can I schedule posts? =
Yes. With **Social Publisher Pro**, you can schedule posts and reposts in advance — perfect for editorial planning and consistent visibility on LinkedIn.

= Does Social Publisher support AI rewriting? =
Yes. **Social Publisher Pro** includes AI-assisted rewriting using the **ChatGPT API**. You can refine tone and wording while keeping your message on-brand.

= Do I need my own API key for AI rewriting? =
Yes. You add your own OpenAI API key in the plugin settings. This keeps everything transparent and under your control.

= Is my Featured Image used automatically? =
No. Social Publisher gives you full control over the LinkedIn image. If you don't select one, the post is published without an image.

= Are changes to the post updated on LinkedIn? =
No. Once published, LinkedIn posts cannot be updated from WordPress. Changes must be made directly on LinkedIn.

= Is Social Publisher GDPR compliant? =
Yes. Social Publisher uses a secure, tracking-free OAuth proxy (https://social-publisher.enfants.de) and stores no personal data.

= How much does Pro cost? =
Pro starts at 9 EUR/month and can be cancelled at any time. Early adopters keep their entry price permanently — no matter how often we raise it for new customers.

== Changelog ==

= 1.8.1 =
* Stability & Architecture update
* Fix: License validation decoupled from admin initialization
* Improvement: License checks moved to a non-blocking execution path
* Improvement: Reduced synchronous external requests during admin runtime

= 1.8.0 =
* NEW: Daily automatic license check (Pro) for uninterrupted posting
* NEW: Improved license activation flow with clearer messages
* NEW: Smoother UI for LinkedIn preview and settings
* Improvement: More reliable communication with the license server
* Fix: Edge cases during activation/deactivation resolved

= 1.7.1 =
* NEW: First version of license validation for Pro features
* Improved domain-locking logic for license security

= 1.7.0 =
* Improved metabox layout for faster workflow
* Clearer UI feedback for LinkedIn status and GPT rewriting
* GPT rewriting now respects selected language

= 1.6.1 =
* NEW: Scheduled reposting / content recycling (Pro)
* NEW: Date/time selector for automated reposting

= 1.6.0 =
* NEW: GPT rewriting with text styles (Informative, Emotional, Salesy)
* NEW: API key field in the settings
* NEW: Displaying the active target profile in the editor
* Improved dynamic translation support

= 1.5.0 =
* Complete codebase cleanup according to WordPress.org guidelines
* Unified `socipu_` prefix across all code
* Improved security by switching to `wp_safe_redirect()`
* Moved screenshots to the official SVN assets directory

= 1.4.2 =
* JavaScript cleanup and externalization
* Fixed dropdown delay after authentication
* Improved JS initialization and UI speed

= 1.4.1 =
* NEW: Metabox and ACF fields only appear with an active LinkedIn connection (Pro)
* NEW: Optional backlink feature (Pro)
* NEW: Visual loading indicator during publishing

= 1.3.1 =
* Fixed LinkedIn preview script on external hosts

= 1.3.0 =
* NEW: OAuth flow with automatic profile selection
* Improved ACF integration

= 1.1.0 =
* NEW: Posts are only published once after first save
* Improved LinkedIn publishing security
* Added admin notice for previously published LinkedIn posts

= 1.0.0 =
* Initial release with LinkedIn integration
