Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi @zorenleolumosbog,

    You can get the start and end date using the following method:

    yith_wecvti_get_date_message($id)

    This method returns a string message with start and end date. You only need specify the event id ($id).

    Now if you want to get a specific data like start date, start time:

    $product   = wc_get_product( $id );
    
    $start_date = yit_get_prop( $product, '_start_date_picker', true );
    $start_time = yit_get_prop( $product, '_start_time_picker', true );
    $end_date   = yit_get_prop( $product, '_end_date_picker', true );
    $end_time   = yit_get_prop( $product, '_end_time_picker', true );

    I hope this can help you.

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘How to get the start and end date?’ is closed to new replies.