Home/Hooks/admin_url
FILTER

admin_url

Filters the admin area URL. 'admin', or null. Default 'admin', which obeys force_ssl_admin() and is_ssl().

wp-includes/link-template.php
Line 3599
4 Parameters
View Source

Usage

add_filter( 'admin_url', 'your_callback_function', 10, 4 );

Filter Callback:

function your_callback_function( $url, $path, $blog_id, $scheme ) {
    // Your code here
    return $url;
}

Parameters

$url

Parameter 1

$path

Parameter 2

$blog_id

Parameter 3

$scheme

Parameter 4

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.