gins( $types ) { $seo = in_array( 'seo', $types, true ) ? $this->getConflictingPlugins( 'seo' ) : []; $sitemap = in_array( 'sitemap', $types, true ) ? $this->getConflictingPlugins( 'sitemap' ) : []; $plugins = array_merge( $seo, $sitemap ); require_once ABSPATH . 'wp-admin/includes/plugin.php'; foreach ( $plugins as $pluginPath ) { if ( is_plugin_active( $pluginPath ) ) { deactivate_plugins( $pluginPath ); } } } /** * Get a list of conflicting plugin slugs. * * @since 4.5.1 * * @return array An array of conflicting plugin slugs. */ public function getConflictingPluginSlugs() { return $this->conflictingPluginSlugs; } }