<?php
/**
 * Channels Hooks – wires AJAX actions to Channels controller endpoints.
 *
 * @package    MOMCS_Sync
 * @subpackage MOMCS_Sync/includes/common/hooks
 */

declare(strict_types=1);

namespace MOMCS_Sync\Includes\Common\Hooks;

use MOMCS_Sync\Includes\Common\Controllers\Channels_Controller;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class Channels_Hooks
 */
class Channels_Hooks {
	/**
	 * Constructor.
	 */
	public function __construct() {
		$this->register_hooks();
	}

	/**
	 * Register AJAX hooks for channels feature.
	 */
	private function register_hooks(): void {
		add_action( 'wp_ajax_momcs_delete_channel', array( Channels_Controller::class, 'handle_delete_channel' ) );
	}
}
