<?php

namespace Blazemedia\Affiliation\AdminUserInterface\Content;
use Blazemedia\Affiliation\AdminUserInterface\Settings\Capability;
/**
 * Verifica inserimento di asin doppi nello stesso giorno su articoli dello stesso postype
 */
class AsinChecker {

    protected $base_dir;
    protected $base_url;


    public function __construct() {

        $this->base_url = BLAZE_AFFILIATION_URI .'src/AdminUserInterface/Content/js/';

        add_action('admin_print_footer_scripts', [ $this,'enqueue_custom_script_for_editor']);
        
    }

    public function enqueue_custom_script_for_editor( ) {
        ?>
        <script type="text/javascript" src="<?php echo $this->base_url ?>AsinChecker.js"></script>
        <?php
    }

   
}
