I have a front form that allows filtering. I think I need a nonce but I am not sure to use it or not.
I use the get_query_var
method to modify the main query. It uses a get method.
- whether a nonce is used for
get
methods? - How to implement nonce with
get_query_var
<form action="" method="get">
<?php wp_nonce_field('my_delete_action'); ?>
<input type="hidden" name="id" value=" <?php echo $id; ?> " />
<input type="text" name="rec_name" value=" <?php echo $name; ?> " />
<input type="submit" value="Delete" />
</form>