is_conflicting_pro_version() ) { add_action( 'all_admin_notices', [ $this, 'pro_version_warning' ] ); } } /** * Is PRO active but an unsupported version? * * @return bool */ public function is_conflicting_pro_version() { return defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) && version_compare( ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION, ADVANCED_SIDEBAR_MENU_PRO_VERSION, '>' ); } /** * Display a warning if we don't have the required PRO version installed. * * @param bool $no_banner - Display as "message" banner. */ public function pro_version_warning( $no_banner = false ) { ?>

]{%2$s}[] */ printf( esc_html_x( 'Advanced Sidebar Menu requires %1$sAdvanced Sidebar Menu PRO%2$s version %3$s+. Please update or deactivate the PRO version.', '{}{}', 'advanced-sidebar-menu' ), '', '', esc_attr( ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION ) ); ?>

is_conflicting_pro_version() ) { ?>
pro_version_warning( true ); ?>

  1. Menus.', 'advanced-sidebar-menu' ); ?>
  2. id_base ) { ?>
id_base ) { $margin = '20px'; } else { $margin = '11px'; } ?>
id_base ) { $src = 'category-widget-min.png?version=' . ADVANCED_SIDEBAR_BASIC_VERSION; } ?>
PRO version widget options