| @@ -379,8 +379,13 @@ | ||
| 379 | 379 | if ( ! current_user_can( 'manage_options' ) ) { |
| 380 | 380 | return; |
| 381 | 381 | } |
| 382 | 382 | |
| 383 | + // Add a filter to allow disabling the admin bar menu. | |
| 384 | + if ( ! apply_filters( 'winp_show_admin_bar_menu', true ) ) { | |
| 385 | + return; | |
| 386 | + } | |
| 387 | + | |
| 383 | 388 | // Get active snippets (static for now). |
| 384 | 389 | $this->collect_active_snippets(); |
| 385 | 390 | |
| 386 | 391 | $count = count( $this->active_snippets ); |