Human friendly WordPress Automation
Several WunderAutomation parameter returns a date. You can change how the date is returned in two ways. Using the format modifier to define how the date is represented in text, and the add parameter to change the actual date returned.
As with all parameters the easiest way to write the parameter placeholder is to use the parameter editor:
The date format is determined as follows:
The format is defined using a standard PHP date formatting string. The format follow the PHP date() function. For example the sting Y-m-d would produce a date formated like this: 2020-05-12
Some common date and time formats:
See the date format reference section below for details on what each letter in the date string represents.
Assuming the parameter would have returned May 12, 2020. The following special formatting strings would return:
Using the add modifier, it’s possible to manipulate the returned date by adding or subtracting from it. This follows the syntax of the PHP strtotime() function. Some examples assuming that the original date returned from the parameter is 10:00 AM May 12th 2020.
Powered by BetterDocs
Your email address will not be published. Required fields are marked *
Yes, sign me up for informational and marketing emails from wundermatics.com
Save my name, email, and website in this browser for the next time I comment.