Рет қаралды 10,343
A nonce stands for "number used once" and is a way for WordPress to ensure that the ajax request is coming from your website, not from another location. When you submit your form, you send the nonce with it, WordPress grabs this nonce and verifies it is correct. The nonce refreshes every certain amount of time on WordPress, so even if someone knew your nonce at one point, it changes.