Changelog
AffiliateWP changelog
Every AffiliateWP release, and what changed in it. See what’s new
Added 4
- Build custom affiliate registration and login forms using the block editor
- Add controls for formatting dynamic coupons based on affiliate info
- Merge Blocks add-on into core
- Introduce a draft referral status to improve logging of referral history
Changed 7
- Requires WordPress 5.2 or newer
- Introduce a filter in the Affiliate Area > Coupons template
- Introduce a new 'type' column in the Coupons database table
- Introduce a filter in the list table class for more easily customizing filtered views
- Migrate legacy affiliate information from user meta to affiliate meta
- Display context in integration logs
- Increase coupon code length to 191 characters
Fixed 3
- Fix strings with malformed placeholders causing errors in the Danish translation
- Improve error handling in the licensing API
- Prevent changes to the conversion rate when updating a campaign
Changed 1
- Introduce a Cookie Compat Mode for use with specialized caching setups
Fixed 1
- Avoid a fatal error when viewing Settings with the Danish translation
Fixed 1
- Check for core and add-on updates no more than once per hour
Changed 1
- Update the Payouts Service URL everywhere for consistency
Fixed 1
- Fix a typo in the {amount} merge tag in the nl_NL translation
Fixed 1
- Mitigate potential SQL injection in two internal database APIs
Fixed 1
- Campaign conversions are not being properly recalculated in some circumstances
Changed 2
- Improve styling and integration with the WooCommerce coupon editing interface
- Soft bump the PHP minimum to 7.0
Fixed 2
- Uninstall crashes following changes to the bootstrap introduced in 2.7
- REST endpoints accepting IDs and arrays of IDs should properly handle for arrays
Fixed 1
- Fix Pantheon-specific cookie prefix delimiter
Changed 4
- Add specialized cookie handling for the Pantheon edge network
- Notate in the System Info log whether the site is running on the Pantheon edge network
- Pass the referral object to the affwp_auto_complete_referral filter
- Add select2 to core for add-ons to use
Fixed 1
- affwp_is_affiliate query variable only works in admin areas
Added 3
- Require WordPress 5.0 or newer
- Require PHP 5.6 or newer
- Soft-discontinue five integrations (more information):
- ExchangeWP (iThemes Exchange)
- Jigoshop
- MarketPress
- Shopp
- WP eCommerce
Changed 8
- Implement partial activation for a better activation experience sans minimum requirements
- Add unique id attributes to the output for each registered setting
- Dev: Upgrade the ParseCsv library to v1.3.0
- Dev: Audit and overhaul inline documentation throughout the plugin
- Dev: Introduce an `affwp_plugins_loaded` hook for add-ons to bootstrap on
- Dev: Introduce `affwp_get_{object}_by()` helper functions for most core objects
- Dev: Convert Campaigns to use a standard database table instead of a MySQL view
- Dev: Improve campaign management with the introduction of a fully-qualified Campaign object
Fixed 7
- PHP 8 compatibility fixes
- WooCommerce: Don't override product rate with affiliate rate in certain circumstances
- Querying with a custom fields param value via REST triggers a fatal in some circumstances
- Use translatable labels for statuses in the Affiliates list table
- Add missing translator comments for all localized strings containing placeholders
- Restore the ability to save affiliate rate and rate type to empty
- Ensure affiliate ID is cast as an integer when derived from a coupon
Added 1
- Add support for 7 more countries in the Payouts Service:
- Argentina
- Brazil
- Costa Rica
- India
- Indonesia
- Mexico
- Thailand
Changed 3
- Ensure all Payouts Service requests are made to official REST endpoints
- Update payout record if a Payouts Service payout method changes
- Standardize headers sent with every Payouts Service request
Fixed 1
- Wrong URL displayed in notice when creating a Payouts Service account with a registered email address
Changed 3
- Improve upgrade routine notices by including the AffiliateWP version number
- Add the ability to list affiliates, payouts, referrals, and visits by a date range with wp-cli
- Dev: Fix the order of arguments passed to affwp_auth_hash() in Affiliate_WP_REST::get_token()
Fixed 1
- WooCommerce: Order status of Refunded should always change referral status to Rejected if enabled
Fixed 4
- Avoid a notice when viewing the Coupons settings tab and WooCommerce is inactive
- Avoid a fatal error in certain circumstances when generating Integration information for the System Info file
- More intuitively handle updating core objects during REST requests
- PHP 8 Compat: Various fixes
Fixed 4
- Avoid a fatal error in User Switching compat if the affiliate user no longer exists
- Contact Form 7: Warning if the CF7 PayPal add-on is not installed
- Referral batch import not accepting Username as Affiliate ID
- Payouts Service: Use the correct documentation link
Fixed 1
- AffiliateWP 2.6.4 update causes a fatal error with Affiliate Forms for Ninja Forms
Added 1
- Add Hungary to the list of countries supported by Payouts Service
Changed 5
- Add support for referral types in referral imports and exports
- Add User Switching 'Switch To' support to the affiliates list table
- Indicate whether dynamic coupons is set up and enabled in the System Info file
- More efficiently check for add-on updates
- Dev: Update core registry to support non-array registrars
Fixed 5
- Avoid a fatal when checking self-affiliate REST requests
- Resolve a conflict with WooCommerce Subscription's "sudo coupons" feature
- Batch processor does not always visually update when running an importer
- is_infinite() expects parameter 1 to be float, string given
- Thai translation not working
Fixed 1
- WooCommerce variable product rates can inadvertently get set to 0.00 in some cases
Changed 2
- Dynamic coupons should be generated when auto-registering new users as affiliates
- Dev: Add compatibility for WP_REST_Request::has_param() pre-WordPress 5.3
Fixed 3
- Recount Stats tool doesn't account for setting zero-based affiliate stats
- WooCommerce: Prevent non-period decimal separators from getting stripped from product referral rates
- $category_id is undefined in EDD's get_referral_total() method
Added 3
- Add a REST endpoint for retrieving campaign data
- Support MySQL date_format when querying referrals
- Introduce affwp_is_affiliate_area() to determine whether you're in the Affiliate Area
Changed 2
- Make it possible to search for individual visits in the Visits screen
- Make it possible to use affwp_get_report_dates outside the context of $_GET
Fixed 4
- Can't delete admin affiliate
- Error when an array is passed when registering Payouts Service admin notice
- Affiliate Area missing "Your affiliate ID is:" when settings are not yet saved
- affiliates/<ID> endpoint cannot be used by non-admin affiliates
Added 1
- Allow template tags to be used in email subject fields
Changed 9
- Support utf8mb4 in all core tables
- Make it possible to retrieve an affiliate conversion rate based on a date range
- Dev: Deprecate the $context parameter in the Referrals get_by() method in preparation for PHP 8
- Dev: Remove the requirement for a payout ID or object to retrieve a payout status label
- Dev: Wrong hook name when a coupon is updated
- Dev: Validate parameters before sending in affwp_rest_request()
- Dev: Make it easier to determine if the payouts service is enabled and configured
- Dev: Switch to using wp_doing_ajax() to standardize checking DOING_AJAX
- Dev: Add the ability to customize the REST response when querying object collections
Fixed 7
- Campaigns containing unicode characters do not get tracked
- All WooCommerce coupons displayed for affiliates on the coupons screen
- Referrals not imported when importing data from Affiliates Pro
- Sales reports tab tooltips no longer working
- From Name email setting overwritten by the Edwiser Bridge plugin
- Pay Affiliates link not displayed properly with some admin color schemes
- Affiliates cannot view their own data via REST