Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/*
* Create custom smartcode for hidden field for the editor
* usage: {my_formatted_date_time}
* @return: current date time as d.m.Y H:i:s format
*/
add_filter('fluentform_editor_shortcode_callback_my_formatted_date_time', function ($value) {
return date('d.m.Y H:i:s');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment