> Link title, URL, and icon values. */ function wpbc_appointment_services_get_provider_admin_links( $resource_id = 0, $include_service_assignments = true ) { $resource_id = absint( $resource_id ); $links = array(); if ( wpbc_appointment_services_can_manage_availability() ) { $working_hours_url = function_exists( 'wpbc_get_general_availability_url' ) ? wpbc_get_general_availability_url() : admin_url( 'admin.php?page=wpbc-availability&tab=general_availability' ); $days_off_url = function_exists( 'wpbc_get_availability_url' ) ? wpbc_get_availability_url() : admin_url( 'admin.php?page=wpbc-availability' ); $working_hours_url = add_query_arg( 'wpbc_ag_open', 'working_time', $working_hours_url ); if ( $resource_id ) { $working_hours_url = add_query_arg( 'resource_id', $resource_id, $working_hours_url ); $days_off_url = add_query_arg( 'resource_id', $resource_id, $days_off_url ); } $links[] = array( 'title' => __( 'Working Hours', 'booking' ), 'url' => $working_hours_url, 'icon' => 'wpbc-bi-clock', ); $links[] = array( 'title' => __( 'Days Off', 'booking' ), 'url' => $days_off_url, 'icon' => 'wpbc-bi-calendar-x', ); } if ( $include_service_assignments && current_user_can( wpbc_appointment_services_get_manage_capability() ) ) { $service_assignments_url = admin_url( 'admin.php?page=wpbc-services' ); $services_link_title = __( 'Manage Services', 'booking' ); if ( $resource_id ) { $service_assignments_url = add_query_arg( 'provider_id', $resource_id, $service_assignments_url ); $services_link_title = __( 'Assigned Services', 'booking' ); } $links[] = array( 'title' => $services_link_title, 'url' => $service_assignments_url, 'icon' => 'wpbc-bi-grid', ); } return (array) apply_filters( 'wpbc_appointment_provider_admin_links', $links, $resource_id, $include_service_assignments ); } /** * Render semantic Provider administration links using standard WP buttons. * * @param int $resource_id Optional Provider booking resource ID. * @param string $css_class Optional additional wrapper class. * @param bool $include_service_assignments Whether to include the Services-catalog shortcut. * * @return void */ function wpbc_appointment_services_render_provider_admin_links( $resource_id = 0, $css_class = '', $include_service_assignments = true ) { $links = wpbc_appointment_services_get_provider_admin_links( $resource_id, $include_service_assignments ); if ( empty( $links ) ) { return; } ?>
( 'rental' === $selected_mode_id ) ? __( 'Weekdays Availability', 'booking' ) : __( 'General Availability', 'booking' ), 'url' => $weekdays_availability_url, 'icon' => 'wpbc-bi-calendar-week', ); $guide_links[] = array( 'title' => __( 'Days Availability', 'booking' ), 'url' => $days_availability_url, 'icon' => 'wpbc-bi-calendar-check', ); } } if ( function_exists( 'wpbc_is_dismissed_panel_visible' ) && ! wpbc_is_dismissed_panel_visible( $guide_html_id ) ) { return; } ?>[booking_appointment]
service_id, provider_id — services, providers — form_type — nummonths, startmonth — calendar_dates_start, calendar_dates_end — options — auto_select_provider — show_progress — progress_item_1_title through progress_item_3_title — progress_item_1_number through progress_item_3_number — screen_1_title, screen_1_description, screen_2_title, screen_2_description — allow_past — [booking_appointment service_id="12" provider_id="5"]
[booking_appointment progress_item_1_title="" progress_item_1_number="01/03" progress_item_2_title="Specialist" progress_item_3_title="Schedule & Details"]