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,34 @@
<?php
class BWFCRM_API_AFFWP_Get_Affiliates extends BWFCRM_API_Base {
public static $ins;
public static function get_instance() {
if ( null === self::$ins ) {
self::$ins = new self();
}
return self::$ins;
}
public function __construct() {
parent::__construct();
$this->method = WP_REST_Server::READABLE;
$this->route = '/affwp/contact/(?P<contact_id>[\\d]+)';
}
public function process_api_call() {
$contact_id = $this->get_sanitized_arg( 'contact_id', 'text_field' );
if ( empty( $contact_id ) ) {
return $this->error_response_200( __( 'No Contact ID provided', 'wp-marketing-automations-pro' ), null, 400 );
}
/** @var BWFCRM_Integration_Affiliate $ins */
$ins = BWFCRM_Core()->integrations->get_integration( 'affwp' );
$details = $ins->get_contact_affiliate_details( absint( $contact_id ) );
return $this->success_response( $details );
}
}
BWFCRM_API_Loader::register( 'BWFCRM_API_WLM_Get_Contact_Member' );

View File

@@ -0,0 +1,37 @@
<?php
class BWFCRM_API_AFFWP_Get_Referrals extends BWFCRM_API_Base {
public static $ins;
public static function get_instance() {
if ( null === self::$ins ) {
self::$ins = new self();
}
return self::$ins;
}
public function __construct() {
parent::__construct();
$this->method = WP_REST_Server::READABLE;
$this->route = '/affwp/contact/(?P<contact_id>[\\d]+)';
}
public function process_api_call() {
$contact_id = $this->get_sanitized_arg( 'contact_id', 'text_field' );
if ( empty( $contact_id ) ) {
return $this->error_response_200( __( 'No Contact ID provided', 'wp-marketing-automations-pro' ), null, 400 );
}
$offset = $this->pagination->offset;
$limit = $this->pagination->limit;
/** @var BWFCRM_Integration_Affiliate $ins */
$ins = BWFCRM_Core()->integrations->get_integration( 'affwp' );
$details = $ins->get_contact_referrals( absint( $contact_id ), $offset, $limit );
return $this->success_response( $details );
}
}
BWFCRM_API_Loader::register( 'BWFCRM_API_AFFWP_Get_Referrals' );