Skip to main content

This filter allows to modify the URL to which the cloaker is currently redirecting

add_filter('at_page_cloaker_link', 'at_page_cloaker_custom_link', 10, 3);
function at_page_cloaker_custom_link($url, $post_id, $shop_id) {
	if($post_id = 123) {
		return 'http://www.google.com/';
	}
}

In this example, the product cloaker for ID 123 would redirect to Google.


Was this article helpful?

1 Star2 Stars3 Stars4 Stars5 Stars
(No Ratings Yet)

Keine Kommentare vorhanden


You have a question or an opinion about this post? Share it with us!

Your email address will not be published. Required fields are marked *

*
*