1.

How to get a website URL in WordPress?

Answer»

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();



Discussion

No Comment Found