bp_remove_event_manager_plugin_version_check_dependency()
Add compatibility of Events Manager plugin with platform.
Description
Source
File: bp-core/bp-core-filters.php
function bp_remove_event_manager_plugin_version_check_dependency() {
$current = get_option( 'active_plugins', array() );
// Check Events Manager plugin is in Active plugins array.
if ( in_array( 'events-manager/events-manager.php', $current ) ) {
// Check Platform plugin version less then 1.3
if ( version_compare( BP_VERSION, '1.3', '<' ) ) {
// Remove action from Event Manager plugin
remove_action( 'bp_include', 'bp_em_init' );
$plugin_dir = ABSPATH . 'wp-content/plugins/events-manager/buddypress/bp-em-core.php';
if ( file_exists( $plugin_dir ) ) {
// Add Event Manager plugin component file.
require( $plugin_dir );
}
}
}
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.1.3 | 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.