File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -239,15 +239,10 @@ function product_meta() {
239
239
// existing meta group tables show only ppom main page
240
240
if ( $ action != 'new ' && $ do_meta != 'edit ' && $ view != 'addons ' && $ view != 'changelog ' ) {
241
241
ppom_load_template ( 'admin/existing-meta.php ' );
242
-
243
- $ should_load_banner = ! ppom_pro_is_installed ();
244
- if ( ppom_pro_is_installed () ) {
245
- $ license_data = get_option ( 'ppom_pro_license_data ' , array () );
246
- $ should_load_banner = isset ( $ license_data ->plan ) &&
247
- is_numeric ( $ license_data ->plan ) &&
248
- NM_PersonalizedProduct::LICENSE_PLAN_1 <= NM_PersonalizedProduct::get_license_category ( intval ( $ license_data ->plan ) );
249
- }
250
-
242
+
243
+ // NOTE: Allow only for Tier 1 Plan or lower if license is present.
244
+ $ should_load_banner = NM_PersonalizedProduct::LICENSE_PLAN_1 >= NM_PersonalizedProduct::get_license_category ( intval ( apply_filters ( 'product_ppom_license_plan ' , 0 ) ) );
245
+
251
246
if ( $ should_load_banner ) {
252
247
do_action ( 'themeisle_sdk_load_banner ' , 'ppom ' );
253
248
}
You can’t perform that action at this time.
0 commit comments