redirect_canonical

Advertisement

Summery Summery

Filters the canonical redirect URL.

Syntax Syntax

apply_filters( 'redirect_canonical', string $redirect_url, string $requested_url )

Description Description

Returning false to this filter will cancel the redirect.

Parameters Parameters

$redirect_url

(string) The redirect URL.

$requested_url

(string) The requested URL.

Source Source

File: wp-includes/canonical.php

Advertisement

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Advertisement

Leave a Reply

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