 Welcome back to the channel. So in this video I'm going to show you how you can remove a taxonomy from the WP side map XML file. Now I'm running WooCommerce inside my admin and when you come to WooCommerce you actually have a number of taxonomies and right now on our side map we can see the product cut which is the product category inside our WooCommerce. So you have the products and then you have product cut. If you look at the bottom of the screen right here when I hover over product you will see the categories. So we have a taxonomy which is called product cut. Now I might not want to expose this particular category for whatever reason that I do have. So let's remove that category. Now what I'm going to do is I'm going to work within my functions.php. I could have made this a plugin but I can also at the same time work inside my functions.php. So I'm going to add a new filter which is a new function of WordPress and the filter we're going to use is called WP sitemaps taxonomies. I'll add a new function to this and what I'm going to do is I'll just duplicate this function that I have here. Then I'll say remove product cut taxonomy tax from the XML sitemap. Now I'll copy this and then I'll start writing that function and add some space down here. So whenever we use a filter hook we're getting some information passed into the hook by default. I'll use taxonomies to catch what is being passed in and then I'll return that at the end of the day. Now if I don't make any code changes that will still work and it won't be affected in any way. Now what we're going to do is use the php function which is unset and we are looking to unset the taxonomies knowing that this is actually an array of data that's coming in. So we'll be looking inside that array and now I'm going to just pass in the name of that taxonomy. Remember this is called product underscore cut for the categories. So I'll do product cut and when I update this file and then go to the site maps I want you to watch the product cut here in the site maps. If you will notice that it uses the same name as the taxonomy that is in there. So I'll reload this and you'll see that that category is no longer there. If we want to see the same thing about this category we can just come back here, copy this, add it the line here and we're just going to say category and this is coming from the posts. We have category right inside as a taxonomy. So let me update this and then reload and you'll see that that category is no longer showing up inside our site map. So that's how you remove a taxonomy from the XML site map. I hope you enjoyed the video. If you did please share it with your friends. Don't forget to hit the subscribe button and let me know in the comments how you're finding the XML site map feature in Wordpress 5.5 and above.