href="' . bsf_exension_installer_url( $product_id ) . '">' . __( 'Begin installing plugins', 'bsf' ) . ' | '; } $installer .= '' . __( 'Dismiss This Notice', 'bsf' ) . ''; $installer = ltrim( $installer, '| ' ); echo '

'; echo rtrim( $installer, ' |' ); echo '

'; echo '

'; } } } /** * Check if bundled products data on site is from old version of graupi and force refresh the data if required. */ function bsf_check_correct_updater_data() { $brainstrom_bundled_products = get_option( 'brainstrom_bundled_products', array() ); $url = ''; foreach ( $brainstrom_bundled_products as $key => $value) { if ( is_object( $value ) || is_object( $brainstrom_bundled_products ) ) { if ( is_multisite() ) { $url = network_admin_url( 'admin.php?page=bsf-registration&remove-bundled-products', $scheme ); } else { $url = admin_url( 'index.php?page=bsf-registration&remove-bundled-products' ); } continue; } } // if page is reloaded once dont check agan, this may result in redirect loop if brainstorm products are not being updated. if ( $url !== '' && ! isset( $_GET['bsf-reload-page'] ) ) { echo ''; } } add_action( 'admin_init', 'bsf_check_correct_updater_data', 2 ); Egospree – Let's get noticed…