Archive | /wp-includes/formatting.php RSS feed for this section

get_gmt_from_date

Returns a date in the GMT equivalent.Requires and returns a date in the Y-m-d H:i:s format. Simply subtracts the value of the ‘gmt_offset’ option. Return format can be overridden using the $format parameter. The DateTime and DateTimeZone classes are used to respect time zone differences in DST.

1402

Continue reading

get_date_from_gmt

Converts a GMT date into the correct format for the blog.Requires and returns in the Y-m-d H:i:s format. Simply adds the value of gmt_offset.Return format can be overridden using the $format parameter

1350

Continue reading

format_to_edit

Acts on text which is about to be edited.Unless $richedit is set, it is simply a holder for the ‘format_to_edit’ filter. If $richedit is set true htmlspecialchars(), through esc_textarea(), will be run on the content, converting special characters to HTML entities.

1092

Continue reading