What is the correct way to handle AJAX requests securely in WordPress plugins?
-
A
Use wp_ajax_ and wp_ajax_nopriv_ hooks with nonce verification
-
B
Use $_POST directly in functions.php
-
C
Create a custom PHP endpoint file
-
D
Use jQuery $.get without authentication