Your cart is empty!
Count Times Columns
apply_filters( 'vikappointments_count_times_table_columns', int $count, int $columns, array $options )
Fires while fetching the number of columns to display within the employees list availability table.
Description
Under the Listings » Employees section of the configuration, it is possible to find a setting called AJAX Search. Depending on how this setting is configured, the system might display an availability table for each employee under the Employees List page in the front-end.
This hook triggers to alter the number of columns to display at runtime.
Parameters
- $count
-
(int) The number of columns to display. It is suggested to use a value between 2 and 5.
- $columns
-
(int) The default number of columns (4).
- $options
-
(array) An array of search options.
id_ser
- the ID of the selected service, if any;date
- the initial check-in date (the current one by default);people
- the selected number of participants, if any.
Example
/**
* Trigger hook to alter the number of columns to display within the
* timeline displayed by the employees list page.
*
* @param integer $count The number of columns to display.
* @param integer $columns The default number of columns.
* @param array $options An array of search options.
*/
add_filter('vikappointments_count_times_table_columns', function($count, $columns, $options)
{
// always display 3 columns
return 3;
}, 10, 3);
Changelog
Version | Description |
---|---|
1.2 | Introduced. |
Last Update: 2021-10-04
Helpful?