apply_filters( 'get_canonical_url', string $canonical_url, WP_Post $post )

Filters the canonical URL for a post.


Description Description


Parameters Parameters

$canonical_url

(string) The post's canonical URL.

$post

(WP_Post) Post object.


Top ↑

Source Source

File: wp-includes/link-template.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.