• Resolved jmayorga9112

    (@jmayorga9112)


    hi, im tried to show neither a month nor a week but a day’s schedule. For example: im only looking for watch the schedule for today and tomorrow. I need to know which one og the hook is the right one to do that. Thnxs

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @jmayorga9112

    I hope you are doing well!

    It is complex and requires some custom coding. You will need to use appointments_get_timetable() function. Our developers have prepared a snippet, feel free to develop it further if any changes needed.

    add_shortcode( 'wpmudev_app_custom_timetable', function(){
    
        $capacity = 0;
        $dates = array(
            strtotime("now"),
            strtotime("+1 day")
        );
    
        $out = '<div class="wpmudev_app_timetables">';
    
        foreach ( $dates as $date ) {
    
            $date_formatted = date( 'F j, Y', $date );
            $out .= "<h3>For {$date_formatted}</h3>";
            $out .= appointments_get_timetable( $date, $capacity );
    
        }
    
        $out .= '</div>';
    
        ob_start();
        ?>
        <script type="text/javascript">
            ($=>{
                $(document).ready(function(){
                    $( '.wpmudev_app_timetables .app_timetable' ).show();
                });
            })(jQuery);
        </script>
        <?php
        $out .= ob_get_clean();
    
        return $out;
    
    } );

    Please use on a page shortcodes [wpmudev_app_custom_timetable] and [app_confirmation] to view the day’s schedule.

    Hope this helps!

    Kind regards,
    Nastia

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @jmayorga9112

    I hope you’re doing well today!

    We’ve not heard from you in a while. I’ve marked this ticket as resolved for now, but if you need anything else at all, we’re here for you, please just reopen the ticket or create a new one.

    Have a good day and take care!

    Cheers,
    Nastia

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘hook to day’s schedule’ is closed to new replies.