Similar Posts
Woocommerce Filter
Remove product link on checkout page Using add filter woocommerce_cart_item_name we can modify woocommerce product name with condition check for checkout page. //remove product link on checkout page add_filter(‘woocommerce_cart_item_name’, ‘custom_filter_wc_cart_item_remove_link’, 10, 3); function custom_filter_wc_cart_item_remove_link($product_name, $cart_item, $cart_item_key) { if (is_checkout()) { $wccart = new WC_Cart(); $name = apply_filters(‘woocommerce_cart_item_remove_link’, sprintf( ‘ ‘, esc_url($wccart->get_remove_url($cart_item_key)), __(‘Remove this item’, ‘woocommerce’),…
WordPress Development, Design and Customization Company
Boost your business with WordPress, one of the most popular Content Management Systems in use on the web today. We offer WordPress development and design , hosting and installation, speed optimisation, custom plugin development and support. We can also help you migrate from other CMS systems such as Joomla and Drupal over to WordPress. We…
How to hide and disable WP plugin updates
Sometimes when situation becomes very unfavourable and installed wordpress plugin not supported filter and hook to add_filters, In these type of situation we can hide or disable plugin updates. 1. Go to particular plugin folder and increase Version to very higher which actually pluing will never reach in this era. Example: ajax-search.php Version: 999.0.0 2….
Add Custom Cart Item Data in WooCommerce
WooCommerce lets you add your own custom cart item data by using hooks provided by WooCommerce. Here’s a full plugin code you can modify accordingly: /** * Plugin Name: Product Course * Description: Add Custom Cart Item Data in WooCommerce * Version: 1.0 * Author: Gaurav */ function wd_get_item_data($item_data, $cart_item_data) { if (isset($cart_item_data[“custom_date”])) { $item_data[]…
Hide Zero Value On Zero Cost Shipping Methods WooCommerce
In WooCommerce if you use Local Pickup or other methods of shipping that don’t have a preset or calculated cost, the shipping labels on both the cart and checkout to appear with $0.00 price, like this: Local pickup: $0.00 This was an intentional change by WooCommerce. You can read the conversation and reasoning behind it…
How to protect file if User not logged in WordPress
If User not logged In and try to download .PDF file or any other extension below code will protect file even if User try to download via direct link. 1. Add code in function.php or your plugin file. Update permalink after adding this code. This code will add htaccess rules in .htaccess file. add_filter(‘mod_rewrite_rules’,’output_htaccess’);function output_htaccess(…