Settings Page
Issue #80
resolved
It would create to have an option on the WooCommerce Appointments settings page for each filter/ hook that is already integrated. So users with little knowledge can easily change e.g. the calendar view, hide or show certain information and edit the behaviour of the plugin (without the need to write code in the functions.php).
Comments (4)
-
-
reporter // Set day view to sort appointments by staff in columns — default: false add_filter( 'woocommerce_appointments_calendar_view_by_staff', '__return_true' );
-
reporter this is all the filters I have currently active:
// Default Calendar view: 'day' or 'month' add_filter( 'woocommerce_appointments_calendar_view', 'appointments_default_view' ); function appointments_default_view() { $default_view = 'day'; return $default_view; } // Set day view to sort appointments by staff in columns — default: false add_filter( 'woocommerce_appointments_calendar_view_by_staff', '__return_true' ); // Show product in appointment item — default: false add_filter( 'woocommerce_appointments_calendar_view_show_product', '__return_true' ); // Always create a corresponding order for an appointment — default: false add_filter( 'woocommerce_appointments_always_create_order', '__return_true' ); // Change the scale of the calendar items in day view — default: 60 add_filter( 'woocommerce_appointments_calendar_view_day_scale', 'appointments_day_scale' ); function appointments_day_scale(){ return 90; } // Interval for timepicker add_filter('woocommerce_appointments_calendar_add_appointment_interval', 'add_appointment_interval'); function add_appointment_interval(){ return 15; }
-
- changed status to resolved
Introduced with 2.1.7
- Log in to comment
Can you share the functions you use to filter different view for the calendar?