| @@ -39,28 +39,18 @@ | ||
| 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 | - __( 'AI assistant', 'hostinger' ), | |
| 47 | - __( '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 |
| 52 | - ); | |
| 53 | - } | |
| 54 | - if ( ! empty( Hostinger_Helper::get_api_token() ) ) { | |
| 55 | - add_submenu_page( | |
| 56 | - 'hostinger', | |
| 57 | - __( 'Regenerate website with AI', 'hostinger' ), | |
| 58 | - __( 'Regenerate website with AI', 'hostinger' ), | |
| 59 | - 'manage_options', | |
| 60 | - 'hostinger&#ai-website', | |
| 61 | - '__return_empty_string', | |
| 62 | - 5 | |
| 63 | 53 | ); |
| 64 | 54 | } |
| 65 | 55 | |
| 66 | 56 | remove_submenu_page( 'hostinger', 'hostinger' ); |