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,72 @@
<?php
class RCP_REST_API_Routes {
/**
* Holds our routes
*
* @since 1.0
*/
private $routes;
/**
* Get started
*
* @since 1.0
*/
public function __construct() {
$v1_routes = array(
'earnings' => 'RCP_REST_API_Earnings_Route_V1',
'levels' => 'RCP_REST_API_Membership_Level_Route_V1',
'members' => 'RCP_REST_API_Member_Route_V1',
'payments' => 'RCP_REST_API_Payment_Route_V1',
);
if ( defined( 'RCP_PLUGIN_VERSION' ) && version_compare( RCP_PLUGIN_VERSION, '3.0', '>=' ) ) {
$v1_routes['customers'] = 'RCP_REST_API_Customer_Route_V1';
$v1_routes['memberships'] = 'RCP_REST_API_Membership_Route_V1';
}
$this->routes['v1'] = $v1_routes;
$this->load();
foreach( $this->routes as $version => $routes ) {
foreach( $routes as $route ) {
if ( class_exists( $route ) ) {
new $route;
}
}
}
}
/**
* Load our files
*
* @since 1.0
*/
private function load() {
$path = trailingslashit( dirname( __FILE__ ) );
// Load each enabled integrations
require_once $path . 'routes/class-route.php';
foreach( $this->routes as $version => $routes ) {
foreach( $routes as $filename => $class ) {
if( file_exists( $path . 'routes/' . $version . '/class-' . $filename . '-route.php' ) ) {
require_once $path . 'routes/' . $version . '/class-' . $filename . '-route.php';
}
}
}
}
}