| @@ -97,9 +97,25 @@ | ||
| 97 | 97 | |
| 98 | 98 | return $code; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | + public function should_plugin_split_notice_shown() { | |
| 102 | + $plugin_split_notice_hidden = get_option( 'hts_plugin_split_notice_hidden', false ); | |
| 101 | 103 | |
| 104 | + if ( $plugin_split_notice_hidden !== false ) { | |
| 105 | + return false; | |
| 106 | + } | |
| 107 | + | |
| 108 | + if ( ! version_compare( HOSTINGER_VERSION, '3.0.0', '>=' ) ) { | |
| 109 | + return false; | |
| 110 | + } | |
| 111 | + | |
| 112 | + if ( is_plugin_active( 'hostinger-easy-onboarding/hostinger-easy-onboarding.php' ) ) { | |
| 113 | + return false; | |
| 114 | + } | |
| 115 | + | |
| 116 | + return true; | |
| 117 | + } | |
| 102 | 118 | |
| 103 | 119 | public function get_hostinger_plugin_url(): string { |
| 104 | 120 | $website_locale = get_locale() ?? 'en_US'; |
| 105 | 121 | $reseller_locale = get_option( 'hostinger_reseller', null ); |