get_canonical_url

Advertisement

Summery Summery

Filters the canonical URL for a post.

Syntax Syntax

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

Parameters Parameters

$canonical_url

(string) The post's canonical URL.

$post

(WP_Post) Post object.

Source Source

File: wp-includes/link-template.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.