plugin development - Is nonce in PHP form and Ajax both necessary?

admin2025-04-19  0

I have a php form which is submitted through jQuery Ajax. Previously i had used nonce with Ajax and PHP form seperately.

Here i am using wp_nonce_field() in PHP form. Is it necessary to use wp_create_nonce() while localising script and pass this via ajax ? Or the nonce in php form is sufficient ? Using both nonce has any issues ?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745041444a281565.html

最新回复(0)