Add filter to canonical URL
-
Hi,
I suggest adding a filter for Instant_Articles_Post::get_canonical_url function. For now it uses get_permalink() for canonical URL but I need to pass wp_get_canonical_url() in there so my permalink matches one on website.
Is it possible to add something like this on line 267 of class-instant-articles-post.php?
$url = apply_filters( 'ia_canonical_url', $url, $this->_post );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add filter to canonical URL’ is closed to new replies.