Easy Digital Downloads – Additional Shortcodes

plugin banner

Add addditional shortcodes for Easy Digital Downloads

Author:Easy Digital Downloads (profile at wordpress.org)
WordPress version required:4.9
WordPress version tested:6.1
Plugin version:1.4.2
Added to WordPress repository:25-02-2014
Last updated:02-11-2022
Rating, %:100
Rated by:1
Plugin URI:https://easydigitaldownloads.com/downloads/ed...
Total downloads:8 960
Active installs:500+
plugin download
Click to start download

Additional Shortcoddes for Easy Digital Downloads adds powerful condional page logic for your WordPress powered ecommerce store.

How to use Additional Shortcodes

The shortcodes included all need opening and closing tags:

Show content if shopping cart is not empty.

[edd_cart_has_contents] Content Here [/edd_cart_has_contents]

Show content if the shopping cart is empty.

[edd_cart_is_empty] Content Here [/edd_cart_is_empty]

Show the content if the cart contains specific products (supports any, all, and variations)

[edd_items_in_cart ids="20"] Content Here [/edd_items_in_cart]

[edd_items_in_cart ids="20,34,25:1"] Content Here [/edd_items_in_cart]

[edd_items_in_cart ids="20,34,25:1" match="all"] Content Here [/edd_items_in_cart]

[edd_items_in_cart ids="20,34,25:1" match="any"] Content Here [/edd_items_in_cart]

Show the content if the cart does not contain specific products (supports any, all, and variations)

[edd_items_not_in_cart ids=”20″]Content here[/edd_items_not_in_cart]
[edd_items_not_in_cart ids=”20,34,25:1″]Content Here[/edd_items_not_in_cart]
[edd_items_not_in_cart ids=”20,34,25:1″ match=”all”]Content Here[/edd_items_not_in_cart]
[edd_items_not_in_cart ids=”20,34,25:1″ match=”any”]Content Here[/edd_items_not_in_cart]

Show the content if the user has made previous purchases (will always be hidden if logged out)

[edd_user_has_purchases] Content Here [/edd_user_has_purchases]

Show the content only if the user has no purchases. Includes the ‘loggedout’ parameter to specify if logged out users
should be included in seeing the content. (Default true)

[edd_user_has_no_purchases loggedout="true"] Content Here [/edd_user_has_no_purchases]

Show the content to logged in users

[edd_is_user_logged_in] Content Here [/edd_is_user_logged_in]

Show the content only to logged out users

[edd_is_user_logged_out] Content Here [/edd_is_user_logged_out]

Show content only if a user has purchased any of the specified download ids.
Supports multiple IDs. If a download has variable pricing, you can pass just the ID for all options, or <download id>:<price id> for a specific variable pricing option.

[edd_user_has_purchased ids="20,34,25:1"] Content Here [/edd_user_has_purchased]

Software Licensing Support:

Show content only if a user has active licenses

[edd_has_active_licenses] Content Here [/edd_has_active_licenses]

Show content only if user has expired licenses

[edd_has_expired_licenses]Content Here[/edd_has_expired_licenses]

Show content only if user has all expired licenses

[edd_has_all_expired_licenses]Content Here[/edd_has_all_expired_licenses]

ChangeLog