=== SyncBridge – Multi Target Sync ===
Contributors: imjayeshwp
Donate link: https://profiles.wordpress.org/imjayeshwp/
Tags: post sync, page sync, custom post type sync, multisite sync, cross-site sync
Requires at least: 5.2
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sync posts, pages, and custom post types to multiple remote WordPress sites via REST API.

== Description ==
SyncBridge lets you publish or update content across multiple independent WordPress installations without requiring Multisite.

Use it for:

- Multi-brand publishing
- Multi-region or multi-language websites
- Distributing posts across partner sites
- Maintaining synchronized content libraries
- Centralized editorial management

### Key Features

- Sync **Posts, Pages, and Custom Post Types**
- Sync **Featured Image**, categories, tags, and metadata
- Sync to **multiple remote WordPress sites**
- Bulk sync with a **dropdown checkbox selector**
- **Per-row Sync button** for individual posts
- Auto-sync on post update (optional)
- Works with all CPTs supporting the REST API (`show_in_rest`)
- Secure authentication using **Application Passwords**
- WPCS-compliant, clean architecture, admin-friendly UI

### Security

- Authentication via WordPress **Application Passwords**
- Nonces and sanitization throughout
- No external services — sync happens **site-to-site** only

== Installation ==

1. Upload the plugin folder `syncbridge` to `/wp-content/plugins/`
2. Activate the plugin via **Plugins → Installed Plugins**
3. Go to **SyncBridge → Settings**
4. Add remote sync targets:
   - Site URL  
   - Username  
   - Application Password  
5. Save settings and start syncing your content.

== Frequently Asked Questions ==

= Does this require WordPress Multisite? =
No. SyncBridge works between completely separate WordPress sites.

= Does it sync custom post types? =
Yes, any CPT with `show_in_rest => true`.

= What happens if the post already exists remotely? =
We check via slug.  
If found → the remote post is **updated**.  
If not found → a new post is **created**.

= Does it sync images? =
Yes. Featured images are automatically uploaded to remote sites.

= Is sync one-way or two-way? =
SyncBridge performs **one-way sync** from the main site to remote sites.

= How many posts can I bulk sync without issues? =
SyncBridge is optimized to sync:
- **10–20 posts** at a time comfortably on standard hosting.
- Higher counts are possible, but may depend on:
  - server memory,
  - PHP max_execution_time,
  - remote site performance,
  - image sizes.

Recommended safe batch size: **up to 20 posts per request**.  
Users can repeat the process for more posts.

== Screenshots ==

1. User Application Password generation  
2. SyncBridge – Settings page  
3. Post editor metabox: Select target websites  
4. Per-row Sync button in posts table  
5. Bulk sync dropdown with multi-site selector  

== Changelog ==

* Full rewrite to modular architecture
* Added multi-site dropdown checkbox popover
* Improved Bulk Sync validation
* UI upgrades to Sync column
* Added Pages & CPT sync support
* Added plugin “Settings” link in Plugins list
* Added password visibility toggle using Dashicons
* WPCS compliance across all files

= 1.0.0 =
* Initial release

== Upgrade Notice ==