bp_check_for_legacy_theme()
Check if currently using legacy theme
Description
Source
File: bp-core/admin/bp-core-admin-functions.php
function bp_check_for_legacy_theme() { $using_lagecy = false; if (current_theme_supports('buddypress-use-legacy')) { $using_lagecy = true; } if (bp_get_theme_package_id() == 'legacy') { $using_lagecy = true; } if ($using_lagecy) { add_action('admin_notices', 'bp_print_legacy_theme_deprecated_notice'); } }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | 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.