I have a website where WordPress is installed in subdirectory, therefore site home page is different from WordPress installation directory:
// Get URL of site homepage
echo home_url();
// Prints: https://shop.example.com
// Get URL of WordPress installation directory
echo site_url();
// Prints: https://shop.example.com/wordpress
The latter is not a valid front-end URL at my site. Unfortunately, I had to adapt Wirecard Checkout Page plugin, because it uses site_url() in places when home_url() should be used instead. Would be nice, if you could merge this change in your plugin.
Hi,
I have a website where WordPress is installed in subdirectory, therefore site home page is different from WordPress installation directory:
The latter is not a valid front-end URL at my site. Unfortunately, I had to adapt Wirecard Checkout Page plugin, because it uses site_url() in places when home_url() should be used instead. Would be nice, if you could merge this change in your plugin.
All the best, Česlav