qenta-cee / woocommerce-qcp

QENTA Checkout Page plugin for WooCommerce
https://www.qenta.com
GNU General Public License v2.0
9 stars 7 forks source link

Fix: use home_url() instead of site_url() #13

Closed chesio closed 7 years ago

chesio commented 7 years ago

Hi,

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.

All the best, Česlav