/* Display Last Modified Date in Oxygen Templates */ function display_last_modified_date( ) { $post_id = get_the_ID(); # Wordpress post modified date, now Oxygen builder last revision date #return get_the_modified_time('j F Y'); ##return the_modified_date('j F Y H:i:s'); # Get last revision dates $dates = Oxygen_Revisions::get_post_meta_db( $post_id, "ct_builder_shortcodes_revisions_dates" ); rsort($dates); $revision_date = get_date_from_gmt( date('Y-m-d H:i:s', intval( $dates[0]->meta_value ) )); $date_display = date('j F Y', strtotime($revision_date)); return $date_display; }