Filters the canonical URL for a post.
$canonical_urlstring
$postWP_Post
return apply_filters( 'get_canonical_url', $canonical_url, $post );
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_canonical_url