Skip to content

Commit 5ac7e9f

Browse files
chore: add Bf banner
1 parent b0e2125 commit 5ac7e9f

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

classes/admin.class.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,10 @@ function product_meta() {
239239
// existing meta group tables show only ppom main page
240240
if ( $action != 'new' && $do_meta != 'edit' && $view != 'addons' && $view != 'changelog' ) {
241241
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+
251246
if ( $should_load_banner ) {
252247
do_action( 'themeisle_sdk_load_banner', 'ppom' );
253248
}

images/black-friday.jpg

90.1 KB
Loading

0 commit comments

Comments
 (0)