• Resolved Robbie

    (@robbie505)


    Hi,

    I would like to be able to re-format the time notation in the hours-table.
    Is it possible to add a filter in class-frontend.php on line 561?

    Example:
    $hour_table .= '<time>' . apply_filters( 'wpsl_hours_format', esc_html( $hour[0] ) . ' - ' . esc_html( $hour[1] ) ) . '</time>';

    The filter helps me to display 10.00 - 22.00 uur instead of 10:00 - 22:00

    Yes I know, it’s not really a life or death situation, it’s just easier on my eye

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    I will look into adding a filter for this a future update, until then you can fix this by using this filter to loop over the meta data for each location.

    You can use that to search for . in the data and replace it with : for the hours only ( $store_meta[‘hours’] ).

    Thread Starter Robbie

    (@robbie505)

    That filter is for the storelist only, correct?

    I’ll keep using the filter I proposed for the create_opening_hours_tabel, which suit my needs a bit better.
    Will keep my fingers crossed it can be added in any upcoming versions 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filter request’ is closed to new replies.