Hi Fabien,
1. You can completely remove the affiliate link button using the following code snippet. You can add this to your child theme’s functions.php.
add_filter( 'poka_affiliate_button', '__return_false' );
2. You can use the affiliate link button without the redirect by overwriting the “poka_affiliate_link” function. You can do this by pasting the above inside your child theme’s functions.php.
function poka_affiliate_link( $review_id ) {
$base = get_theme_mod( 'general-affiliate-redirect-link-folder' ) ? get_theme_mod( 'general-affiliate-redirect-link-folder' ) : 'go';
if ( '' !== $review_id ) {
$affiliate_link_id = poka_get_field( 'affiliate_link', $review_id );
$link = poka_get_field( 'affiliate_link', $affiliate_link_id );
} else {
$link = '#';
}
return apply_filters( 'poka_affiliate_link', $link );
}