bp_pre_update_option_active_plugins( $value )
Removing the spoofing of BuddyPress and bbPress when option updated.
Description
Source
File: bp-loader.php
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | function bp_pre_update_option_active_plugins( $value ) { global $bp_plugin_file , $bb_plugin_file , $bp_is_multisite ; if ( $bp_is_multisite ) { if ( isset( $value [ $bb_plugin_file ] ) ) { unset( $value [ $bb_plugin_file ] ); } if ( isset( $value [ $bp_plugin_file ] ) ) { unset( $value [ $bp_plugin_file ] ); } } else { $value = array_diff ( $value , array ( $bp_plugin_file , $bb_plugin_file ) ); } /** * Remove empty value from array */ $value = array_filter ( $value ); return $value ; } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.2.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.