<?php

namespace BwWinnersGlobalSite;

if ( ! class_exists( __NAMESPACE__ . '\Gf_Post_Update' ) ) {

	class Gf_Post_Update {

		public function __construct() {

			require_once plugin_dir_path( PLUGIN_PATH ) . 'includes/gf-post-update/product_update/class-product-update.php';
			new Product_Update();

			require_once plugin_dir_path( PLUGIN_PATH ) . 'includes/gf-post-update/brand_update/class-brand-update.php';
			new Brand_Update();


			add_action( 'admin_enqueue_scripts', [ $this, 'register_assets' ] );
		}

		public function register_assets () {
			wp_register_script(
				'bw-copy-text',
				plugins_url( 'assets/js/bw-copy-text.js', PLUGIN_PATH ),
				[ 'jquery' ],
				'1.0.1'
			);
		}
	}
}
