get_canonical_url

get_canonical_url

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_canonical_url') is found 1 times:

  • /wp-includes/link-template.php line 4098
    4094
    4095
    4096
    4097
    4098
    4099
    4100
    4101
    4102
    4103
    4104
         *
         * @param string  $canonical_url The post's canonical URL.
         * @param WP_Post $post          Post object.
         */
        return apply_filters( 'get_canonical_url', $canonical_url, $post );
    }
     
    /**
     * Outputs rel=canonical for singular queries.
     *
     * @since 2.9.0