Filter hook 'home_url'

in WP Core File wp-includes/link-template.php at line 3464

Description

Filters the home URL.

Occurrences

Filename Line Number
wp-includes/link-template.php 3464

Parameters

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

PHP Doc

/**
	 * Filters the home URL.
	 *
	 * @since 3.0.0
	 *
	 * @param string      $url         The complete home URL including scheme and path.
	 * @param string      $path        Path relative to the home URL. Blank string if no path is specified.
	 * @param string|null $orig_scheme Scheme to give the home URL context. Accepts 'http', 'https',
	 *                                 'relative', 'rest', or null.
	 * @param int|null    $blog_id     Site ID, or null for the current site.
	 */