@@ -2527,12 +2527,14 @@ public function settings_tabs( $tabs ) {
2527
2527
*/
2528
2528
public function integration_tabs ( $ tabs ) {
2529
2529
if ( $ this ->feedzy_is_business () || $ this ->feedzy_is_agency () ) {
2530
- $ tabs ['openai ' ] = __ ( 'OpenAI ' , 'feedzy-rss-feeds ' );
2530
+ $ tabs ['openai ' ] = __ ( 'OpenAI ' , 'feedzy-rss-feeds ' );
2531
2531
$ tabs ['openrouter ' ] = __ ( 'OpenRouter ' , 'feedzy-rss-feeds ' );
2532
2532
}
2533
- if ( ! feedzy_is_pro () ) {
2533
+ if ( ! feedzy_is_pro () || ! apply_filters ( ' feedzy_is_license_of_type ' , false , ' business ' ) ) {
2534
2534
$ tabs ['openai ' ] = sprintf ( '%s <span class="pro-label">PRO</span> ' , __ ( 'OpenAI ' , 'feedzy-rss-feeds ' ) );
2535
- $ tabs ['openrouter ' ] = sprintf ( '%s <span class="pro-label">PRO</span> ' , __ ( 'OpenRouter ' , 'feedzy-rss-feeds ' ) );
2535
+ if ( ! isset ( $ tabs ['openrouter ' ] ) ) {
2536
+ $ tabs ['openrouter ' ] = sprintf ( '%s <span class="pro-label">PRO</span> ' , __ ( 'OpenRouter ' , 'feedzy-rss-feeds ' ) );
2537
+ }
2536
2538
$ tabs ['spinnerchief ' ] = sprintf ( '%s <span class="pro-label">PRO</span> ' , __ ( 'SpinnerChief ' , 'feedzy-rss-feeds ' ) );
2537
2539
$ tabs ['amazon-product-advertising ' ] = sprintf ( '%s <span class="pro-label">PRO</span> ' , __ ( 'Amazon Product Advertising ' , 'feedzy-rss-feeds ' ) );
2538
2540
$ tabs ['wordai ' ] = sprintf ( '%s <span class="pro-label">PRO</span> ' , __ ( 'WordAi ' , 'feedzy-rss-feeds ' ) );
@@ -2579,7 +2581,7 @@ private function render_view( $name ) {
2579
2581
case 'amazon-product-advertising ' :
2580
2582
case 'openai ' :
2581
2583
case 'openrouter ' :
2582
- if ( ! feedzy_is_pro () ) {
2584
+ if ( ! feedzy_is_pro () || ! apply_filters ( ' feedzy_is_license_of_type ' , false , ' business ' ) ) {
2583
2585
$ file = FEEDZY_ABSPATH . '/includes/views/ ' . $ name . '-view.php ' ;
2584
2586
} else {
2585
2587
$ file = apply_filters ( 'feedzy_render_view ' , $ file , $ name );
0 commit comments