Question: how to use wp nonce?
Answer: You can create a nonce and add it to the query string in a URL, you can add it in a hidden field in a form, or you can use it some other way. For nonces that are to be used in AJAX requests, it is common to add the nonce to a hidden field, from where JavaScript code can fetch it.