Waiting for author
Overview of the issue
When using AffiliateWP alongside WPML, the Affiliate Area’s content fails to display on translated pages.
Workaround
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' ); } );