Filter hook 'redirect_canonical'

in WP Core File wp-includes/canonical.php at line 820

Description

Filters the canonical redirect URL. Returning false to this filter will cancel the redirect.

Occurrences

Filename Line Number
wp-includes/canonical.php 820

Parameters

Type Name Description
string $redirect_url The redirect URL.
string $requested_url The requested URL.

PHP Doc

/**
	 * Filters the canonical redirect URL.
	 *
	 * Returning false to this filter will cancel the redirect.
	 *
	 * @since 2.3.0
	 *
	 * @param string $redirect_url  The redirect URL.
	 * @param string $requested_url The requested URL.
	 */