<?php

/**
 * TVC Ajax Calls Class.
 *
 * @package TVC Product Feed Manager/Data/Classes
 * @version 1.0.1
 */

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

if ( ! class_exists( 'Convpfm_Ajax_Calls' ) ) :
	/**
	 * Feed Controller Class
	 */
	class Convpfm_Ajax_Calls {
		public function __construct() { }

		protected function safe_ajax_call( $nonce, $registered_nonce_name ) {
			// check the nonce
			if ( wp_verify_nonce( $nonce, $registered_nonce_name ) && is_admin()) {
				//die( 'You are not allowed to do this!' );
				return true;
			}else {
				return false;
			}
			
		}
	}
	// end of Convpfm_Ajax_Calls class
endif;