Redirect WooCommerce single product page

Redirect to add-to-cart url Instead of showing a single product page, we can add the product to shopping cart, when someone clicks on the single product link or tries to browse the product page with a direct link. This only works for simple product type and simple subscription product type,… Read More »

Modify default WordPress search URL

By default WordPress search result page URL is a query parameter – ?s=[search_term]. Not a very “pretty” URL! But we can make it a nice “pretty” url with a little code snippet. Above code will make your search page url from https://careless.dev/?s=[search_term] to https://careless.dev/search/[search_term]. But /search/ is the default slug… Read More »