Description
Perform relocation of selected child plugins
Usage
bw_relocate_plugins();Parameters
Returns
voidSource
File name: oik/admin/oik-relocate.incLines:
1 to 9 of 9
function bw_relocate_plugins() { //bw_backtrace(); global $bw_relocations; if ( isset( $bw_relocations) && count( $bw_relocations ) ) { bw_perform_relocations( $bw_relocations ); bw_replace_active_plugins( $bw_relocations ); bw_unset_update_plugins( $bw_relocations ); } }View on GitHub View on Trac
Called by
1 to 1 of 1
Invoked by
Calls
1 to 3 of 3
- bw_perform_relocations() – Perform relocations
- bw_replace_active_plugins() – Replace all entries in "active_sitewide_plugins" and "active_plugins" with the new $to locations Note: We don’t need to check if the plugin is network only, we just check both arrays We do this whether it’s multisite or not.
- bw_unset_update_plugins() – Remove from the update_plugins transient any plugin that has been relocated
