Search
 
SCRIPT & CODE EXAMPLE
 

PHP

home url wordpress

$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
Comment

PREVIOUS NEXT
Code Example
Php :: php compare string 
Php :: php get current year 
Php :: home url wordpress 
Php :: dequeue beaver buillder script wordpress 
Php :: php max_execution_time 
Php :: php mysql datetime 
Php :: laravel parse string to date 
Php :: string to slug php 
Php :: how to use join query in codeigniter 
Php :: php model last record 
Php :: laravel convert datetime to date 
Php :: previous url laravel 
Php :: php yesterday 
Php :: convert base64 string to pdf in php 
Php :: laravel 8 bootstrap pagination fix 
Php :: asia time zone in php 
Php :: change background color php 
Php :: remove create in nova resource 
Php :: get soft deleted data laravel 
Php :: array con php 
Php :: only alphabets and space is allowed validation laravel 
Php :: convert string to decimal php 
Php :: php get myme type of image 
Php :: how to define variable as object in blade laravel 
Php :: carbon time ago laravel 
Php :: echo alert php 
Php :: wordpress custom fields variable dump 
Php :: increase the number in php by a certain percentage 
Php :: wordpress check shortcode exists 
Php :: laravel add (s) at the end of text based on how many data 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =