How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums Poka Review Plugin support Affiliate link redirect

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #17821
    david gorzcore


    Is there a way to disable affiliate link function or to be able to use a link without redirect in plugin ?



    Hi David,

    1) There isn’t an option for this one, but you could use CSS to just hide the affiliate link buttons.

    2) To use a link without redirection (so, to disable cloaking), you have to add the following PHP code snippet inside your child theme’s functions.php:

    function prp_get_affiliate_url( $postID, $link_type = 'desktop' ) {
        $siteurl = get_field( 'affiliate_url', $postID );
        if ( ! empty( $siteurl ) ) {
            return $siteurl;
        return '#';
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.