um_allow_canonical__filter

Hook type

Filter

Description

Allow canonical

Parameters

$allow_canonical

(bool) Allow?

Usage

<?php add_filter( 'um_allow_canonical__filter', 'function_name', 10, 1 ); ?>

Examples

<?php
add_filter( 'um_allow_canonical__filter', 'my_allow_canonical', 10, 1 );
function my_allow_canonical( $allow_canonical ) {
    // your code here
return $allow_canonical;
}
?>

Change Log

Since: 2.0

Source

um_allow_canonical__filter is located in includes/core/class-permalinks.php::line 66