| @@ -51,8 +51,16 @@ | ||
| 51 | 51 | 'capability' => apply_filters('timetics_menu_permission_overview', $capability), |
| 52 | 52 | 'position' => apply_filters('timetics_menu_position_overview', 1), |
| 53 | 53 | ], |
| 54 | 54 | [ |
| 55 | + 'id' => 'ask-ai', | |
| 56 | + 'title' => esc_html__('Ask AI', 'timetics'), | |
| 57 | + 'link' => '/ask-ai', | |
| 58 | + // Staff cannot set Aisentic up, so they only get the page once the assistant is ready. | |
| 59 | + 'capability' => apply_filters('timetics_menu_permission_ask_ai', class_exists('Aisentic\Init') && timetics_aisentic_is_registered() ? $capability : 'manage_options'), | |
| 60 | + 'position' => apply_filters('timetics_menu_position_ask_ai', 1.2), | |
| 61 | + ], | |
| 62 | + [ | |
| 55 | 63 | 'id' => 'meeting', |
| 56 | 64 | 'title' => esc_html__('Meetings', 'timetics'), |
| 57 | 65 | 'link' => '/meetings', |
| 58 | 66 | 'capability' => apply_filters('timetics_menu_permission_meeting', 'read_booking'), |