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,67 @@
<?php
/**
* RCP Integrations class
*
* This class handles loading integration files.
*
* @package Restrict Content Pro
* @subpackage Classes/Integrations
* @copyright Copyright (c) 2017, Restrict Content Pro
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
*/
class RCP_Integrations {
/**
* Load plugin integrations.
*
* @access public
* @return void
*/
public function __construct() {
add_action( 'plugins_loaded', array( $this, 'load' ) );
}
/**
* Get a list of available integrations.
*
* @access public
* @return array
*/
public function get_integrations() {
return apply_filters( 'rcp_integrations', array(
'woocommerce' => 'WooCommerce',
'google-authenticator' => 'Google Authenticator',
'wp-approve-user' => 'WP Approve User',
'easy-digital-downloads' => 'Easy Digital Downloads'
) );
}
/**
* Load integration files.
*
* @access public
* @return void
*/
public function load() {
do_action( 'rcp_integrations_load' );
foreach( $this->get_integrations() as $filename => $integration ) {
if( file_exists( RCP_PLUGIN_DIR . 'core/includes/integrations/class-rcp-' . $filename . '.php' ) ) {
require_once RCP_PLUGIN_DIR . 'core/includes/integrations/class-rcp-' . $filename . '.php';
}
}
do_action( 'rcp_integrations_loaded' );
}
}
new RCP_Integrations;