get_canonical_url

get_canonical_url

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('get_canonical_url') is found 1 times:

  • /wp-includes/link-template.php line 4098
    	 *
    	 * @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