More examples of using the filter
-
Could you please provide more examples of using the filter.
I don’t understand php. Tell me how to add several paths to this filter at the same time. In addition to the /cart/, there are 5 other ways (/checkout/, /thank-you/ etc).
add_filter(
‘plsr_speculation_rules_href_exclude_paths’,
function ( $exclude_paths ) {
$exclude_paths[] = ‘/cart/*’;
return $exclude_paths;
}
);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.