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

The post's canonical URL.

$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