=== 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.8.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: social-publisher

== Description ==

Social Publisher automatically shares your WordPress posts on LinkedIn – fully GDPR-compliant and optimized for professional publishing workflows.

With a custom LinkedIn text, individual images, integrated preview and optional GPT rewriting, this plugin is ideal for agencies, editors and B2B marketing teams.

### 🚀 Features (Free)
- Automatically publish posts on LinkedIn when saving
- Custom LinkedIn text independent of the blog post
- Optional separate LinkedIn image
- Live preview of the LinkedIn post inside the editor
- ACF integration (Featured fields supported)
- Supports LinkedIn profiles and company pages
- 100% GDPR-compliant OAuth connection via a neutral proxy (https://social-publisher.enfants.de)

### 💎 Pro Features
- GPT rewriting with style presets (Informative, Emotional, Salesy)
- Scheduled reposting / content recycling
- Automatic daily license validation (domain-locked)
- More call-to-action options and upcoming social networks (Facebook, Instagram)

### 🔒 GDPR Compliance
The plugin does not communicate directly with LinkedIn from the WordPress admin.
All OAuth traffic is routed through a neutral, tracking-free proxy at
**https://social-publisher.enfants.de**, which stores no personal data.
This prevents third-party cookies and ensures a fully compliant authorization flow.

### Important Notes
- LinkedIn posts cannot be edited from WordPress after publishing.
- Changes to WordPress posts do not affect already published LinkedIn posts.
- A post is only published once – when it is first saved.

== 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 ==

= 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.

= Can I schedule posts? =
Not yet. Scheduled publications are planned for a future update.

= Is my Featured Image automatically used? =
Yes, if you do not set a custom LinkedIn image, the post image will be used.

== 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
