Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
389 B
1
Indexable
Never
add_filter('DXIM_FILTER_VEHICLE_HIGHLIGHTS_OUTPUT', 'format_highlights_output', 10, 1);
function format_highlights_output($output) {
    $highlights = explode('+', $output);
    foreach ($highlights as $key => $highlight) {
        $highlights[$key] = ucfirst(strtolower($highlight));
    }
    $output = '<ul><li>' . implode('</li><li>', $highlights) . '</li></ul>';
    return $output;
}