$active_plugin ) { if ( strstr( $active_plugin, '/aftership.php' ) ) { $active_plugins[ $key ] = str_replace( '/aftership.php', '/aftership-woocommerce-tracking.php', $active_plugin ); } } update_option( 'active_plugins', $active_plugins );