Php nonce field is not rendering in html code snippet
-
Hi,
I have an html form in which I have a nonce field. Unfortunately, the nonce field is not rendering in the source code. I am using html code snippet.The code is as follows:
<form method="post" action="<?php echo esc_url( home_url() ); ?>"> <input name="accept" type="checkbox" value="Gdpr" required /> I accept the GDPR <input type="submit" id="accept-button" value="Accept" /> <?php wp_nonce_field( 'accept-gdpr', 'accept_gdpr_nonce' ); ?> </form>The part which is not rendering is :
<?php wp_nonce_field( 'accept-gdpr', 'accept_gdpr_nonce' ); ?>
It is getting commented in source code.
How can I solve this?
Thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Php nonce field is not rendering in html code snippet’ is closed to new replies.