How to Exclude Custom Post Type From Search

| Last Updated: | In: WordPress Snippets


This is very helpful code snippets to exclude the custom posts from WordPress search algorithm. If you are using custom post types on your WordPress sites and don’t want to display that post in your search results, then use the below code. Exclude a custom post type from search Copy the below code and add …

How to Disable RSS Feed on WordPress Website

| Last Updated: | In: Code Snippets, WordPress Snippets


Someone has asked me a question “How to Disable RSS Feed on WordPress website” so that anyone can’t see the RSS feed of the site. Instead of RSS feed, he wants to display the custom message “No feed available, please visit the “http://www.domain-name.com”. How to Disable RSS Feed on WordPress Website Open your functions.php file …

Disable Theme Editor Option in WordPress Admin

| Last Updated: | In: Code Snippets


When you deliver WordPress based website to the client who is not technical as he can manage his/her website by using WordPress Admin panel, then you should disable the theme editor option from admin panel. It will stop to make any changes directly in code by using WordPress Admin panel. Disable Theme Editor Option in …

Redirect User Directly to Checkout Page After Adding Product to Cart in Woocommerce

| Last Updated: | In: Code Snippets


In this tutorial, I will explain how to redirect user directly to checkout page after adding product to cart in WooCommerce. This is very simple & easy code snippets to extends the features of your WooCommerce based online store. How to redirect user directly to checkout page after adding product to cart in Woocommerce? Copy …

Add Confirm Password Field on The Register Form Under My Accounts

| Last Updated: | In: Code Snippets


If you want to add confirm field password field on the registration form under my account page, then this tutorial is specially designed for you. Please keep your close attention in this post and use the below code snippets. Add confirm password field on the register form under My Accounts Add the below code at …

Use Safely Redirect URLs in WordPress

| Last Updated: | In: WordPress Snippets


In this tutorial, I will explain how to use safely redirect URLs in WordPress. The wp_safe_redirect() function does not exit automatically, if you are using this function in your code, then you should always used the exit(). See the below example: Use Safely Redirect URLs in WordPress You can use the below code in your …

How to Remove Width and Height Attributes From Images in WordPress

| Last Updated: | In: Code Snippets, WordPress Snippets


In this tutorial, I will explain how to remove width and height attributes from inserted images in WordPress posts and pages. The images uploaded through the WordPress media uploader and inserted in your posts or pages it automatically added the width and height attributes in your image. How to Remove Width and Height Attributes From …

WooCommerce Remove My Account menu from Dashboard

| Last Updated: | In: WordPress Snippets


Sometimes we need to customize my account menu on the dashboard in WooCommerce. In this tutorial, I will share a simple WordPress filters which allow you to remove the unused menus from the dashboard as per your requirement. See the below screenshot before applying the filters. How to WooCommerce Remove My Account menu from Dashboard …

How to Disable Search Feature in WordPress

| Last Updated: | In: WordPress Snippets


Are you developing a WordPress website in which you don’t want to have the search features or don’t want to allow your website visitor’s to search anything on your website, then this tutorial is designed for you, keep your close attention in this post as I am going to share how to disable search features …

Change the Default Gravatar in WordPress

| Last Updated: | In: WordPress Snippets


By default, WordPress comes with some basic default user avatar is named “Mystery Person”. In this tutorial, I will explain how to change the default gravatar in WordPress. If you want to add your brand to default user gravatar for the newly registered user in your website, then keep your close your attention in this …