<?php
/**
 * Category Hooks – registers WordPress hooks for Category controller endpoints.
 *
 * @package    MOMCS_Sync
 * @subpackage MOMCS_Sync\includes\common\hooks
 * @author     miniOrange
 */

declare(strict_types=1);

namespace MOMCS_Sync\Includes\Common\Hooks;

use MOMCS_Sync\Includes\Common\Controllers\Template_Mapping\Category_Controller;

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

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

	/**
	 * Register AJAX hooks for category feature.
	 */
	private function register_hooks(): void {
		add_action( 'wp_ajax_momcs_sync_get_categories', array( Category_Controller::class, 'handle_get_categories' ) );
	}
}
