How can we help?

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

Home Forums Poka Review Plugin support Disable link cloaking

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12748
    Denno
    Participant

    Hi,

    Is there a way to just enter the affiliate URL and have it displayed like that without the link cloaking (/go/ etc.).

    I am using subdomain links via an external provider and rely on it. I hope there is a solution. 🙂

    Thanks

    #12751
    admin
    Keymaster

    Hi Denno,

    It can be done with the following steps:

    In your theme / child theme functions.php you should add the following:

    function prp_get_affiliate_url($postID,  $link_type = "desktop"){
      return get_field('affiliate_url', $postID);
    }
    
    #12758
    Denno
    Participant

    Hi Admin,

    Thanks for your quick help. 🙂

    I get the following error message, when adding that code to functions.php:

    “Cannot redeclare prp_get_affiliate_url() (previously declared in wp-content/plugins/poka-review/includes/poka-review-helpers.php:108)”

    And it won’t save the changes to functions.php.

    Do you know how this can be resolved?

    Thank you

    #12761
    Denno
    Participant

    Update: I just added the code into the file wp-content/plugins/poka-review/includes/poka-review-helpers.php and it works fine now.

    Again, thanks for your quick help! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.