src/classes/models/lib/loader/controller/api.php
private function register_ajax_script() {
		return $this->register_script_common( function () {
			return [
				'endpoint'      => $this->apply_filters( 'admin_ajax', admin_url( 'admin-ajax.php' ) ),
				'nonce_key'     => $this->get_nonce_key(),
				'nonce_value'   => $this->create_nonce(),
				'is_admin_ajax' => true,
			];
		} );
	}
private function register_ajax_script() {
		return $this->register_script_common( function () {
			return [
				'endpoint'      => $this->apply_filters( 'admin_ajax', admin_url( 'admin-ajax.php' ) ),
				'nonce_key'     => $this->get_nonce_key(),
				'nonce_value'   => $this->create_nonce(),
				'is_admin_ajax' => true,
			];
		} );
	}
private function register_ajax_script ( ) { return $ this -> register_script_common ( function ( ) { return [ 'endpoint' => $ this -> apply_filters ( 'admin_ajax' , admin_url ( 'admin-ajax.php' ) ) , 'nonce_key' => $ this -> get_nonce_key ( ) , 'nonce_value' => $ this -> create_nonce ( ) , 'is_admin_ajax' => true , ] ; } ) ; }
register script for admin-ajax.php
register script for admin - ajax . php