WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about site_url

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/link-template.php apply_filters 3438 /**
* Filters the site URL.
*
* @since 2.7.0
*
* @param string $url The complete site URL including scheme and path.
* @param string $path Path relative to the site URL. Blank string if no path is specified.
* @param string|null $scheme Scheme to give the site URL context. Accepts 'http', 'https', 'login',
* 'login_post', 'admin', 'relative' or null.
* @param int|null $blog_id Site ID, or null for the current site.
*/
wp-includes/https-detection.php apply_filters 56 /**
* Checks whether the current site's URL where WordPress is stored is using HTTPS.
*
* This checks the URL where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder)
* are accessible.
*
* @since 5.7.0
* @see site_url()
*
* @return bool True if using HTTPS, false otherwise.
*/

Hook Parameters

Parameter Type Name Description
string $url The complete site URL including scheme and path.
string $path Path relative to the site URL. Blank string if no path is specified.
string|null $scheme Scheme to give the site URL context. Accepts 'http', 'https', 'login',
int|null $blog_id Site ID, or null for the current site.