Files
roi-theme/wp-content/plugins/wp-marketing-automations-pro/modules/autonami/calls/class-bwfcrm-call-delete-contacts.php
root a22573bf0b 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>
2025-11-03 21:04:30 -06:00

34 lines
657 B
PHP
Executable File

<?php
namespace BWFCRM\Calls\Autonami;
use BWFCRM\Calls\Base;
/**
* Delete Contacts call class
*/
class Delete_Contacts extends Base {
/**
* @param \BWFCRM_Contact $contact
* @param $data
*
* @return bool
*/
public function process_call( $contact, $data ) {
$contact_id = $contact->contact->get_id();
// rechecking just to make sure if this function get invoked directly using namespace
if ( empty( $contact_id ) ) {
return false;
}
return \BWFCRM_Model_Contact::delete_contact( $contact_id );
}
}
/**
* Register call
*/
BWFCRM_Core()->calls->register_call( 'delete_contacts', 'BWFCRM\Calls\Autonami\Delete_Contacts' );