Commit inicial - WordPress Análisis de Precios Unitarios

- 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>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
<?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 BPExtension extends ExtensionHandler{
private static $instance = null;
public static function getInstance() {
if (BPExtension::$instance == null) {
BPExtension::$instance = new BPExtension;
}
return BPExtension::$instance;
}
public function processExtension($data, $process_type = null ){
global $wpdb;
$response = [];
$all_buddy_fields = [];
$get_BPfields = $wpdb->get_results("SELECT id, name FROM {$wpdb->prefix}bp_xprofile_fields where type !='option'", ARRAY_A);
foreach($get_BPfields as $get_buddy_fields){
if($process_type == 'Export'){
$all_buddy_fields[$get_buddy_fields['name']] = $get_buddy_fields['name'];
}
else{
$all_buddy_fields[$get_buddy_fields['name']] = $get_buddy_fields['id'];
}
}
$bp_fields_key = $this->convert_static_fields_to_array($all_buddy_fields);
$response['bp_fields'] = $bp_fields_key;
return $response;
}
public function extensionSupportedImportType($import_type ){
if(is_plugin_active('buddypress/bp-loader.php')){
if($import_type == 'Users'){
return true;
}
}
}
}