自用修改yith-woocommerce-affiliates加入短代码

//link-generator.php 34行
<span class="copy-trigger">Share your Instagram,Facebook,VK,Blog...</span>
<!--?php $go_link = 'http://XXXXX?url='.$referral_link; $gg_link = file_get_contents($go_link); ?-->

<!--?php echo sprintf( __( 'Your referral URL is: &lt;strong class="copy-target"&gt;%s&lt;/strong&gt;', 'yith-woocommerce-affiliates' ), $gg_link ) ?-->
<!--?php echo sprintf( '&lt;small&gt;%s &lt;span class="copy-trigger"&gt;%s&lt;/span&gt; %s&lt;/small&gt;', __( '(Now', 'yith-woocommerce-affiliates' ), __( 'copy', 'yith-woocommerce-affiliates' ), __( 'this referral link and share it anywhere)', 'yith-woocommerce-affiliates' ) ) ?-->
<h3>OR</h3>

修改路径

/wp-content/plugins/yith-woocommerce-affiliates-premium/templates/shortcodes/

Goo.gl部分

使用php composer

https://packagist.org/packages/dominikveils/goo-gl

api 申请

https://developers.google.com/url-shortener/v1/getting_started

为什么站一定要加Aff呢?思考题

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*