=== PublisherMagic Link Converter for Impact.com ===
Contributors: amrelarabi
Donate link: https://www.paypal.com/paypalme/amrelarabi
Tags: affiliate, tracking links, link converter, publisher tools, affiliate marketing
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create affiliate tracking links in WordPress, including bulk conversion for posts, pages, and custom post types.

== Description ==

PublisherMagic Link Converter for Impact.com helps publishers create and manage affiliate tracking links from the WordPress admin.

Key features:

* Connect your partner API account.
* Generate a tracking link for a single URL.
* Bulk convert links for any public post type.
* Choose source mode:
** Custom field value
** Post/page content
* Configure source URL key and converted-flag key.
* Use either WordPress post meta or ACF storage.

Important: This plugin is intended for publisher/partner API accounts, not advertiser/brand API accounts.

= Third-Party Service =

This plugin connects to the Impact.com API to fetch programs and create tracking links.

Service provider: Impact Tech, Inc.
Service URLs:
* https://api.impact.com
* https://integrations.impact.com/impact-publisher/

Data sent to the service:
* Account SID and API auth credentials
* Selected program ID
* Deep-link URL(s) selected for conversion

You should review Impact.com policies before using this plugin:
* https://impact.com/privacy-policy/
* https://impact.com/terms-of-use/

== Installation ==

1. Upload the plugin folder to /wp-content/plugins/ or install it from Plugins > Add New.
2. Activate PublisherMagic Link Converter for Impact.com.
3. Go to Affiliate Links > Settings.
4. Enter your account SID and auth token.
5. Go to Affiliate Links > Bulk Converter and configure:
* Target post type
* Source mode (custom field or post content)
* Source URL field key
* Converted flag field key
* Storage engine (Post Meta or ACF)
6. Click Check Matching Items, then Start Bulk Conversion.

== Frequently Asked Questions ==

= Does this work for advertiser/brand API accounts? =

No. This plugin is intended for publisher/partner API accounts.

= Can I use this without ACF? =

Yes. Choose WordPress Post Meta as the storage engine and use regular meta keys.

= What does the bulk converter update? =

In custom-field mode, it replaces the source URL field value with the tracking URL and sets your converted-flag field.

= Can it convert links in post content? =

Yes. In Bulk Converter, choose "Post/Page Content" as source mode. Matching links inside post content will be replaced with tracking links.

== Screenshots ==

1. Impact API Authentication page.
2. Bulk Convert Course Links page.
3. Manual converting page.

== Changelog ==

= 1.0.1 =
* Fixed Check Matching Items to list every matching link in post content, not only the first URL per post.

= 1.0.0 =
* Initial release.
* Configurable bulk conversion for any post type.
* Source mode selection (custom field or post content).
* Configurable source URL and converted-flag keys.
* Storage engine selection (Post Meta or ACF).
* Third-party service disclosure.