$data) { if ($data['TextDomain'] === $name) { return $plugin; } } return false; } }//end if // If the template SDK development build is installed, default to that. $extendifysdkSdk = extendifysdkCheckPluginInstalled('extendify-sdk'); if ($extendifysdkSdk) { // Only if it's deactivated. if (is_plugin_active($extendifysdkSdk)) { return false; } } // If Editor Plus is installed, next default to that. $extendifysdkEditorPlus = extendifysdkCheckPluginInstalled('editor_plus'); if ($extendifysdkEditorPlus) { // Only if it's deactivated. if (is_plugin_active($extendifysdkEditorPlus)) { // Only if we aren't currently inside Editor Plus. if (strpos(basename(dirname(__DIR__)), 'editorplus') === false) { return false; } } } // Next is first come, first serve. if (class_exists('ExtendifySdk')) { return false; } require_once plugin_dir_path(__FILE__) . 'extendify-sdk.php';