Adding URLs to the JSON Speculation Rules API
…based on the current page if ( is_page(1224) ){ //Example product detail page $urls[] = ‘/products/’; $urls[] = ‘/where-to-buy/’; } return $urls; //Always return in a filter! }); Documentation: https://developer.mozilla.org/en-US/docs/Web/API/Speculation_Rules_API…