Add the feature to insert a specific date instead of minutes
-
Hello,
* How long in minutes to edit a comment * * @since 1.0.0 * * @param int $minutes Time in minutes - Max 90 minutes */ $comment_time = absint( apply_filters( 'sce_comment_time', 5 ) );
I would like to insert, in place of ” 5 ” the following code:
floor((strtotime('09-10-2015 23:00:00')-strtotime(date ("d-m-Y G:i:s")))/60)
So that comments would be editable till the following date: 09-10-2015 23:00:00
Why “max 90 minutes” btw?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add the feature to insert a specific date instead of minutes’ is closed to new replies.