Disable feeds in WordPress

We like to do things without plugin. Specially small tasks like disabling feeds from WordPress. Many sites, specially non-blog sites, would like to disable feeds. With the below code snippet we will disable feed and remove feed links from header, which were generated by default. If anyone tries to access… Read More »

Automatically Complete all WooCommerce orders

Many people likes to mark WooCommerce orders completed automatically, as soon as they are placed. There is no default option in WooCommerce to do this directly from admin panel. But this is very easy and small customization – a few lines of codes. Code goes in the functions.php file of… Read More »

Remove WooCommerce product link from cart and thank you page

WooCommerce product links can be removed from shopping cart and thank you page. woocommerce_cart_item_permalink filter deals with the product permalink on shopping cart page. And woocommerce_order_item_permalink filter deals on thank you page. Returning false will simply remove product links from those pages. In the above code, __return_false is a default… Read More »

Modify default WordPress author base URL

By default WordPress author slug is – /author/[author_display_name]. How about if we need to change this to something else? Perhaps your site is not in English, and you want author slug in your language? This is very easily controllable with author_base property of WP_Rewrite class. Code goes in the functions.php… Read More »