get_site_url( int $blog_id = null, string $path = '', string $scheme = null )

All parameters are optional.

This command is used to retrieve URLs for a given website with WP application files accessible.

echo get_site_url();

BY Best Interview Question ON 06 May 2020

Suggest An Answer