<?php
/**
 * PromoStandards Filter Hook Registration
 *
 * @package    Common
 * @subpackage Hooks
 */

namespace MOWCPS\Common\Hooks;

use MOWCPS\Common\Constants\Plugin_Filters;
use MOWCPS\Common\Interfaces\Hookable_Interface;
use MOWCPS\Common\Suppliers\Promostandards as Promostandards_Supplier;

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

/**
 * Class Promostandards
 */
class Promostandards implements Hookable_Interface {

	/**
	 * Initialize the PromoStandards filter hooks
	 */
	public function __construct() {
		$this->register_hooks();
	}

	/**
	 * Register WordPress hooks
	 *
	 * Trnasforms URLs for specific default apps
	 *
	 * @return void
	 */
	public function register_hooks() {
		add_filter( Plugin_Filters::FILTER_ALTER_DYNAMIC_PARAMS, array( Promostandards_Supplier::class, 'transform_dynamic_params' ), 10, 1 );
	}
}
