| @@ -11,10 +11,10 @@ | ||
| 11 | 11 | |
| 12 | 12 | public function admin_menu(): void { |
| 13 | 13 | $icon = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyMSAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0wLjAwMDE5OTY1MyAxMS4yMzY4VjAuMDAwMzk4MjM1TDUuNjcxMzMgMy4wMjQzNlY4LjA4NjkxTDEzLjE3ODggOC4wOTA1M0wxOC45NDE5IDExLjIzNjhIMC4wMDAxOTk2NTNaTTE0LjcxNCA3LjE2MDQ3VjBMMjAuNTM4IDIuOTQ4NzJWMTAuNTQzN0wxNC43MTQgNy4xNjA0N1pNMTQuNzE0IDIwLjg5NDJWMTUuODc1M0w3LjE0ODYyIDE1Ljg3QzcuMTU1NjggMTUuOTAzNCAxLjI4OTg0IDEyLjY3MzUgMS4yODk4NCAxMi42NzM1TDIwLjUzOCAxMi43NjM4VjI0TDE0LjcxNCAyMC44OTQyWk0wIDIwLjg5NDFMMC4wMDAyMDE3NjkgMTMuNTUxNEw1LjY3MTMzIDE2Ljg1NDZWMjMuODQyN0wwIDIwLjg5NDFaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K'; |
| 14 | 14 | add_menu_page( |
| 15 | - esc_html__( 'Hostinger', 'hostinger' ), | |
| 16 | - esc_html__( 'Hostinger', 'hostinger' ), | |
| 15 | + __( 'Hostinger', 'hostinger' ), | |
| 16 | + __( 'Hostinger', 'hostinger' ), | |
| 17 | 17 | 'manage_options', |
| 18 | 18 | 'hostinger', |
| 19 | 19 | [ $this, 'render' ], |
| 20 | 20 | $icon, |
| @@ -22,10 +22,10 @@ | ||
| 22 | 22 | ); |
| 23 | 23 | |
| 24 | 24 | add_submenu_page( |
| 25 | 25 | 'hostinger', |
| 26 | - esc_html__( 'Get started', 'hostinger' ), | |
| 27 | - esc_html__( 'Get started', 'hostinger' ), | |
| 26 | + __( 'Get started', 'hostinger' ), | |
| 27 | + __( 'Get started', 'hostinger' ), | |
| 28 | 28 | 'manage_options', |
| 29 | 29 | 'hostinger&#home', |
| 30 | 30 | '__return_empty_string', |
| 31 | 31 | 2 |
| @@ -32,20 +32,21 @@ | ||
| 32 | 32 | ); |
| 33 | 33 | |
| 34 | 34 | add_submenu_page( |
| 35 | 35 | 'hostinger', |
| 36 | - esc_html__( 'Learn', 'hostinger' ), | |
| 37 | - esc_html__( 'Learn', 'hostinger' ), | |
| 36 | + __( 'Learn', 'hostinger' ), | |
| 37 | + __( 'Learn', 'hostinger' ), | |
| 38 | 38 | 'manage_options', |
| 39 | 39 | 'hostinger&#learn', |
| 40 | 40 | '__return_empty_string', |
| 41 | 41 | 3 |
| 42 | 42 | ); |
| 43 | + | |
| 43 | 44 | if ( has_action( 'hostinger_ai_assistant_tab_view' ) && current_user_can( 'edit_posts' ) ) { |
| 44 | 45 | add_submenu_page( |
| 45 | 46 | 'hostinger', |
| 46 | - esc_html__( 'AI assistant', 'hostinger' ), | |
| 47 | - esc_html__( 'AI assistant', 'hostinger' ), | |
| 47 | + __( 'AI Content Creator', 'hostinger' ), | |
| 48 | + __( 'AI Content Creator', 'hostinger' ), | |
| 48 | 49 | 'manage_options', |
| 49 | 50 | 'hostinger&#ai-assistant', |
| 50 | 51 | '__return_empty_string', |
| 51 | 52 | 4 |