Learn in this tutorial how to change the default Easy Digital Downloads slug (downloads) to a custom one using code.
The default Easy Digital Downloads slug is “downloads”, so the final URL of an item looks like this: yourwebsite.com/downloads/item-1/.
If what you are selling are downloads it may make sense, but if they are digital products not necessarily downloadable you may prefer to display something like this: yourwebsite.com/products/item-1/.
Is this your case?
Well, you only need a few lines of code:
Snippet to customize the slug in Easy Digital Downloads
Add the following code at the end of functions.php or in your functionality plugin:
It’s as simple as that.
You can change the slug to whatever suits you best.
And keep in mind that if you have WooCommerce active there may be a conflict with the URL, although you shouldn’t have EDD and WooCommerce active in the same installation. 😉
Do you want to change the default URL of Easy Digital Downloads? Now you know how to do it in a simple way using code.
Any questions? Let me know in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉