Overview of the Issue
When using AffiliateWP alongside WPML, the Affiliate Area’s content fails to display on translated pages.
Workaround
This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.
Please, make sure of having a full backup of your site before proceeding.
- Open your theme’s functions file.
- Add the following code:
add_filter( 'affwp_affiliate_area_page_id', function( $affiliate_page_id ) { return apply_filters( 'wpml_object_id', $affiliate_page_id, 'page' ); } );
Still Seeing This Issue?
If updating doesn’t fix it, ask a support question and we’ll look into it with you.
Ask a support question