Created
March 10, 2021 18:01
-
-
Save techjewel/5392ea3b37ceea9f87e59d0595cc036b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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