Login
Get Started

Easy Digital Downloads Documentation

Documentation, Reference Materials, and Tutorials for Easy Digital Downloads 

EDD_SLUG

This constant allows you to change the post type slug (also referred to as permalink or URL suffix) of the download post type. By default the slug is downloads, resulting in URLs that looks like this: https://yoursite.com/downloads/download-name, but by using this constant, you can define the slug as anything you want.

Place the following code snippet to change the slug of the download post type:

define('EDD_SLUG', 'my-downloads-slug');

The best way to apply the code snippet to your site is with a plugin that allows you to add custom code to your site. To do that, we recommend using WPCode. Click here to learn how to apply the snippet using WPCode.

Note: after doing this, you should resave your permalink structure for the changes to fully take effect.

Was this article helpful?

Start selling today!

Join over 50,000 smart store owners, and start using the easiest way to sell digital products with WordPress.

Copyright © 2025 Sandhills Development, LLC