- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
2.2 KiB
PHP
Executable File
60 lines
2.2 KiB
PHP
Executable File
<?php
|
|
/******************************************************************************************
|
|
* Copyright (C) Smackcoders. - All Rights Reserved under Smackcoders Proprietary License
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited
|
|
* Proprietary and confidential
|
|
* You can contact Smackcoders at email address info@smackcoders.com.
|
|
*******************************************************************************************/
|
|
namespace Smackcoders\FCSV;
|
|
|
|
if ( ! defined( 'ABSPATH' ) )
|
|
exit; // Exit if accessed directly
|
|
|
|
class JetEngineTaxonomyExtension extends ExtensionHandler{
|
|
private static $instance = null;
|
|
|
|
public static function getInstance() {
|
|
if (JetEngineTaxonomyExtension::$instance == null) {
|
|
JetEngineTaxonomyExtension::$instance = new JetEngineTaxonomyExtension;
|
|
}
|
|
return JetEngineTaxonomyExtension::$instance;
|
|
}
|
|
|
|
/**
|
|
* Provides default mapping fields for Jet Engine Pro plugin
|
|
* @param string $data - selected import type
|
|
* @return array - mapping fields
|
|
*/
|
|
|
|
|
|
public function processExtension($data){
|
|
$response = [];
|
|
//$response['jetenginetaxonomy_fields'] = null;
|
|
//$response['jetenginetaxonomy_rf_fields'] = null;
|
|
return $response;
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Jet Engine extension supported import types
|
|
* @param string $import_type - selected import type
|
|
* @return boolean
|
|
*/
|
|
public function extensionSupportedImportType($import_type){
|
|
if(is_plugin_active('jet-engine/jet-engine.php')){
|
|
if($import_type == 'nav_menu_item'){
|
|
return false;
|
|
}
|
|
$import_type = $this->import_name_as($import_type);
|
|
if($import_type =='Posts' || $import_type =='Pages' || $import_type =='CustomPosts' || $import_type =='event' || $import_type =='location' || $import_type == 'event-recurring' || $import_type =='Users' || $import_type =='WooCommerce' || $import_type =='WooCommerceCategories' || $import_type =='WooCommerceattribute' || $import_type =='WooCommercetags' || $import_type =='WPeCommerce' || $import_type =='Taxonomies' || $import_type =='Tags' || $import_type =='Categories' || $import_type == 'CustomerReviews' || $import_type ='Comments') {
|
|
return true;
|
|
}
|
|
|
|
else{
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|