Code get link affilate sản phẩm của Shopee vào website WordPress

5/5 - (1 bình chọn)

Zubi Cloud hướng dẫn người dùng thiết kế wordpress chuyên nghiệp 1 thủ thuật khá hay, Code get link affilate sản phẩm của Shopee vào website WordPress.

Chèn đoạn code sau vào file functions.php của theme wordpress bạn đang dùng

add_action( 'woocommerce_after_add_to_cart_button', 'add_custom_button', 10, 0 );
function add_custom_button() { 
$string1 = '';
$string2 = '?sp_atk=74c75d3f-bcb8-4739-aa6d-f441ebc07ea4'; 
$input = get_field('link_shopee');
$output1 = str_replace($string1,'',$input);
$output2 = str_replace($string2,'?af_click_lookback=7d&af_reengagement_window=7d&af_siteid=an_17171860000&af_sub_siteid=sellervn-640850272&af_viewthrough_lookback=1d&c=-&is_retargeting=true&pid=affiliates&utm_campaign=-&utm_content=sellervn-640850272&utm_medium=affiliates&utm_source=an_17171860000
',$input);}else {

$output2 = '?af_click_lookback=7d&af_reengagement_window=7d&af_siteid=an_17171860000&af_sub_siteid=sellervn-640850272&af_viewthrough_lookback=1d&c=-&is_retargeting=true&pid=affiliates&utm_campaign=-&utm_content=sellervn-640850272&utm_medium=affiliates&utm_source=an_17171860000
$output = $output1.$output2;
echo "<a class='butonshoope' href='".$output1.$output2."' target='_blank'>Mua trên Shopee</a>";

5/5 - (1 bình chọn)

0 0 đánh giá
Đánh giá bài viết
Theo dõi
Thông báo của
6 Góp ý
Phản hồi nội tuyến
Xem tất cả bình luận

Meet Puff Bunny, the cuddly companion that brings joy to all ages. With its irresistibly soft fur and adorable demeanor, Puff Bunny is the perfect fluffy friend for endless hugs and smiles.


3rd generation antihistamines list allergy over the counter drugs best allergy medications over the counter


best allergy pill major brand allergy pills types of allergy pills


allergy over the counter drugs 3rd generation antihistamines list strongest over the counter allergy


There is evidently a bunch to realize about this. I feel you made certain nice points in features also.

zoritoler imol

I’ve recently started a blog, the info you offer on this site has helped me greatly. Thank you for all of your time & work. “So full of artless jealousy is guilt, It spills itself in fearing to be spilt.” by William Shakespeare.