Move wp-config.php to a Non-public Folder

According to the WordPress Codex, the config file is one of the most important files in your WordPress installation. This file is located in your WordPress root directory and contains important information such as database connection data (username, password, etc.) and various settings.We can harden the security by somewhat by moving this important information carrier outside the root …

How to remove cross-sells / up-sells products along with main product from cart

Step 1: Finding the right action hook fired by WooCommerce To set up the up-sells and cross-sells products in WooCommerce, you can follow the instruction here.  First thing, we need to find the action hook fired by WooCommerce when removing the product from cart.WooCommerce provides “woocommerce_cart_item_removed” action hook with two arguments; $cart_item_key and $cart_object. Important …