google-code-export / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
2 stars 1 forks source link

Semi-dynamic codes for shortcode arguments: NOW = date('Y-m-d H:i:s') and CURRENT_USER #469

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This would save a lot of awkward workarounds.  Tpls are great... except when 
you NEED PHP.

Original issue reported on code.google.com by ever...@fireproofsocks.com on 21 Mar 2013 at 9:12

GoogleCodeExporter commented 9 years ago
For "author" and "post_author" fields: CURRENT_USER

For "date_min", "date_max", "post_date", "post_date_gmt", "post_modified", 
"post_modified_gmt": NOW

For the gmt fields, gmdate() is used to get the current UTC time.

Original comment by ever...@fireproofsocks.com on 1 May 2013 at 3:18