Changeset 3457355
- Timestamp:
- 02/09/2026 06:31:11 PM (7 weeks ago)
- File:
-
- 1 edited
-
botami-chatbot/trunk/botami-chatbot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
botami-chatbot/trunk/botami-chatbot.php
r3457337 r3457355 41 41 add_action('admin_init', [$this, 'register_settings']); 42 42 add_action('admin_enqueue_scripts', [$this, 'enqueue_admin_assets']); 43 add_action('admin_head', [$this, 'hide_other_admin_notices'], 1); 43 44 44 45 // AJAX hooks pour vérifier la clé API … … 78 79 'default' => '' 79 80 ]); 81 } 82 83 /** 84 * Masquer les notices des autres plugins sur la page Botami 85 */ 86 public function hide_other_admin_notices() { 87 $screen = get_current_screen(); 88 if ($screen && $screen->id === 'toplevel_page_botami-settings') { 89 remove_all_actions('admin_notices'); 90 remove_all_actions('all_admin_notices'); 91 } 80 92 } 81 93
Note: See TracChangeset
for help on using the changeset viewer.