Skip to main content
Easy Digital Downloads Documentation
Documentation, Reference Materials, and Tutorials for Easy Digital Downloads

Checking for Variable Prices

When building themes for Easy Digital Downloads, it is sometimes necessary to check whether a download has variable prices enabled, and then display specialized markup if one does. EDD provides an easy to use function for checking for variable prices that you can use in your theme.

edd_has_variable_prices() is a very useful function that will return a simple boolean value; true if variable prices are enabled, false otherwise.

Here is an example of what you might do: