Question : define home url wp
Answered by : dmitry-christie
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
Source : | Last Update : Fri, 05 Jun 20
Question : home url wordpress
Answered by : lokesh-ramchandani
$url = home_url();
echo $url; // Output: http://www.example.com
$url = home_url( '/' );
echo $url; // Output: http://www.example.com/
$url = home_url( $path = '/', $scheme = 'https' );
echo $url; // Output: https://www.example.com/
$url = home_url( $path = 'example', $scheme = 'relative' );
echo $url; // Output: /example
Source : | Last Update : Mon, 15 Feb 21