buddyboss_theme_sudharo_tapas()
Theme sudho tapas.
Description
Source
File: bp-core/admin/bp-core-admin-theme-settings.php
function buddyboss_theme_sudharo_tapas() { if ( ! function_exists( 'buddyboss_theme' ) ) { return; } if ( is_multisite() ) { $saved_licenses = get_site_option( 'bboss_updater_saved_licenses' ); } else { $saved_licenses = get_option( 'bboss_updater_saved_licenses' ); } $license_is_there = false; $license_is_there_inactive = false; if ( ! empty( $saved_licenses ) ) { foreach ( $saved_licenses as $package_id => $license_details ) { if ( ! empty( $license_details['license_key'] ) && ! empty( $license_details['product_keys'] ) && is_array( $license_details['product_keys'] ) && in_array( 'BB_THEME', $license_details['product_keys'] ) ) { $license_is_there = true; if ( isset( $license_details['is_active'] ) && false === $license_details['is_active'] ) { $license_is_there_inactive = true; } } } } if ( ! $license_is_there && ! $license_is_there_inactive ) { if ( is_multisite() ) { update_site_option( 'be5f330bbd49d6160ff4658ac3d219ee', '1' ); } else { update_option( 'be5f330bbd49d6160ff4658ac3d219ee', '1' ); } } else { if ( is_multisite() ) { delete_site_option( 'be5f330bbd49d6160ff4658ac3d219ee' ); } else { delete_option( 'be5f330bbd49d6160ff4658ac3d219ee' ); } } }
Changelog
Version | Description |
---|---|
BuddyBoss 1.5.4 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.