Additional Shortcodes For Easy Digital Downloads

As simple as it sounds. Adds some additional shortcodes to the Easy Digital Downloads plugin. The shortcodes included all need opening and closing tags:

Show only if the cart has items in it
[edd_cart_has_contents]Content Here[/edd_cart_has_contents]

Show only if the cart is empty
[edd_cart_is_empty]Content Here[/edd_cart_is_empty]

Show 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 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 content only if a user is logged in.
[edd_is_user_logged_in]Content Here[/edd_is_user_logged_in]