mycred_affiliate_link shortcode not working
-
Hi MyCred Team,
I need your help: I have added the shortcode [mycred_affiliate_link] to my site’s page and it is not working.
I have activated the hook from the backend, see the screenshot: https://prnt.sc/nu2eHyvQmWlm
So I tried to debug the issue. This is what I found:
When I edit the page with Elementor then the shortcode shows the affiliate link correctly. But when I view that page with the same user as the normal page link then it shows nothing. I tried to clear the cache but still not working.
Then I tried to find the file that contain the shortcode coding. The file is: ‘/wp-content/plugins/mycred/includes/hooks/mycred-hook-referrals.php’
So I added ‘init’ hook in the ‘__construct’ function with a callback in the class to check if this file is actually executing in the front end. But I saw that this file is not executing in the front end. But as you can see the hook for this is active.
Can you please let me know what can cause this issue?
Thank You!
- The topic ‘mycred_affiliate_link shortcode not working’ is closed to new replies.