wp_admin_canonical_url

wp_admin_canonical_url

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_admin_canonical_url') is found 1 times:

  • /wp-admin/includes/misc.php line 1407
    	 * @since 6.5.0
    	 *
    	 * @param string $filtered_url The admin canonical URL value.
    	 */
    	$filtered_url = apply_filters( 'wp_admin_canonical_url', $filtered_url );
    	?>
    	<link id="wp-admin-canonical" rel="canonical" href="<?php echo esc_url( $filtered_url ); ?>" />
    	<script>
    		if ( window.history.replaceState ) {
    			window.history.replaceState( null, null, document.getElementById( 'wp-admin-canonical' ).href + window.location.hash );
    		}