Skip to content

Commit e2ead80

Browse files
committed
add ability to remove dns-prefetch or preconnect link tags
1 parent 0206cb2 commit e2ead80

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

php/class-delivery.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,8 @@ protected function setup_hooks() {
765765
*/
766766
public function dns_prefetch( $urls, $relation_type ) {
767767

768+
$relation_type = apply_filters('cld_dns_prefetch', $relation_type);
769+
768770
if ( 'dns-prefetch' === $relation_type || 'preconnect' === $relation_type ) {
769771
$urls[] = $this->media->base_url;
770772
}

0 commit comments

Comments
 (0)