Core Function
View Source on Trac ↗ touch_time()
touch_time( mixed $edit = 1, mixed $for_post = 1, mixed $tab_index = 0, mixed $multi = 0 ) Prints out HTML form date elements for editing post or comment publish date.
Parameters 3 required
| Name / Type | Description |
|---|---|
| (int | | bool) $edit Accepts 1|true for editing the date, 0|false for adding the date. Required |
| (int | | bool) $for_post Accepts 1|true for applying the date to a post, 0|false for a comment. Required |
| $tab_index int | The tabindex attribute to add. Default 0. |
| mixed | (int | bool) $multi Optional. Whether the additional fields and buttons should be added. Default 0|false. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
0.71
Source File
wp-admin/includes/template.php
Advertisement