I'm working on a plug-in that let people create posts from front-end form. I want to add date&time fields in the form using touch_time()
but don't know how to use it on front-end.
I have <div id="timestampdiv" class="hide-if-js"><?php touch_time(0, 0, 5); ?></div>
on the front-end form which giving me an error message Fatal error: Call to undefined function touch_time()
.
Is it possible to access touch_time
function(wp-admin/includes/template.php) from my plugin?