eventespresso / ee-code-snippet-library

EE Code Snippet Library
GNU General Public License v2.0
29 stars 19 forks source link

Create dr_ee_remaining_spaces_shortcode #1

Closed Apina closed 9 years ago

Apina commented 9 years ago

New shortcode request to be added.

nerrad commented 9 years ago

couple caveats with this code:

  1. Dates are stored for datetimes in UTC. So if the datetime does not have the name, the name of the datetime displayed will not be correct for the site (unless the users site is in UTC+0). This isn't an issue if people always give their datetimes a name.
  2. This only considers the limit on the datetime, NOT any quantity/limits that may exist on the actual tickets.

So this code works well for a VERY specific use case, as long as that's clarified in the snippet

Apina commented 9 years ago

Added those caveats to the code.