=== Mintfunnel Integration ===
Contributors: coinscribble
Tags: mintfunnel, press release, content distribution, publishing, crypto pr
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.3.0
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Receive press releases and articles from the Mintfunnel platform directly to your WordPress site.

== Description ==

This plugin connects your WordPress site to the Mintfunnel platform so you can receive press releases and articles automatically. Posts arrive through a signed REST endpoint, are categorized according to your site's settings, and are published under a dedicated Mintfunnel author account.

Key features:

* Automatic publishing of press releases, sponsored articles, and organic articles from Mintfunnel
* Update already-published posts in place when content is revised on Mintfunnel (no duplicate posts)
* Per-content-type category mapping so each article type lands in the right WordPress category
* Featured-image handling, including remote image download and thumbnail assignment
* Transaction history pulled from your Mintfunnel account
* Configurable preferred payment method

This plugin was previously published as **Coinscribble Integration**. The platform has been rebranded to Mintfunnel; the plugin's functionality and configuration are unchanged, and existing installs will continue to work after upgrading.

== Installation ==

1. Install and activate the plugin from the WordPress plugin directory, or upload the plugin .zip via **Plugins → Add New → Upload Plugin**.
2. Sign in to Mintfunnel and copy your publisher API key from the publishing-method setup page.
3. In your WordPress admin, open the **Mintfunnel** menu, paste your API key into the token field, and click **Save Changes**. A dedicated `Mintfunnel` author account is created on first activation.
4. Under **Content Categorization**, enable each content type (press release / sponsored / organic) you want to accept and map it to a WordPress category, then save.
5. (Optional) In **Preferred Payment Method**, select how you'd like to be paid and save.
6. (Optional) Open **Transactions** to view payouts; click **Refresh transaction list** to sync.

Once configured, posts published from Mintfunnel will appear in your standard **Posts** screen alongside the rest of your content.

== Frequently Asked Questions ==

= Where do I get my API key? =

Sign in to Mintfunnel, open the publishing-method setup page, choose **WordPress plugin**, and your API key will be displayed there.

= My API key is rejected on activation. =

Make sure your publisher account has been approved on Mintfunnel. Approved publishers can connect immediately; pending publishers will see an "account is pending approval" error until approval is granted.

= What happens when an article is updated on Mintfunnel after it's been published? =

The plugin updates the existing WordPress post in place — no duplicate posts are created.

= I had this plugin installed as "Coinscribble Integration" — do I need to do anything? =

No. The platform was rebranded to Mintfunnel, and the plugin display name was updated to match. Your existing API key, content-type mappings, and preferences are preserved across the upgrade.

== Changelog ==

= 1.3.0 =
* Mintfunnel can now choose the destination WordPress category per content type directly from the Mintfunnel platform — publishers no longer have to maintain the same mapping in two places. The plugin's own Content Categorization page still works as a fallback for sites that haven't configured routing on Mintfunnel, so existing installs upgrade with no action required.
* New REST endpoint `GET /wp-json/coinscribble-integration/categories` (authenticated with your existing API key) lets Mintfunnel read this site's WordPress categories so the platform-side picker can populate.

= 1.2.2 =
* Updated admin sidebar menu icon to the Mintfunnel logo.

= 1.2.1 =
* Updated View Docs link to help.mintfunnel.co.
* Updated admin settings page logo to Mintfunnel branding.

= 1.2.0 =
* Internal identifiers renamed from Coinscribble to Mintfunnel throughout the plugin codebase to match the platform rebrand. No changes to functionality, stored settings, or API endpoints — existing installs upgrade seamlessly.

= 1.1.0 =
* Plugin renamed from "Coinscribble Integration" to "Mintfunnel Integration" to match the platform's new brand. Existing configuration is preserved.
* Article updates from Mintfunnel now reliably edit the existing WordPress post in place — no duplicate posts when content is revised upstream.
* Published article URLs are now reported back to Mintfunnel using each post's actual permalink, so coverage links resolve correctly.
* Plugin metadata clarified — minimum WordPress and PHP versions are now declared in the header for accurate compatibility signaling.

= 1.0.3 =
* Added a "notes" column on the transactions page.
* Added a "Publish date" column on the platform posts page.

= 1.0.2 =
* Removed unused code.

= 1.0.1 =
* Sanitization and escaping improvements.

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.3.0 =
Category mapping can now be managed from Mintfunnel instead of the plugin admin. Existing in-plugin mappings remain the fallback, so no reconfiguration is required on upgrade.

= 1.2.2 =
Minor update — admin sidebar menu icon updated to the Mintfunnel logo.

= 1.2.1 =
Minor update — docs link and admin logo updated to Mintfunnel branding.


= 1.2.0 =
Internal rename to Mintfunnel branding. All existing settings (API token, category mappings, payment info) are preserved — no reconfiguration needed.

= 1.1.0 =
Plugin renamed to Mintfunnel Integration (existing config preserved). Article updates now edit the original WP post in place; published URLs use the canonical permalink. Recommended for any site receiving content from Mintfunnel.
