wip nonce works now

This commit is contained in:
asus
2024-03-24 11:12:11 +01:00
parent b05b5f375e
commit 5c93938b53
2 changed files with 4 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
<!-- https://developer.wordpress.org/reference/hooks/admin_post_action/ -->
<form method="POST" action="<?php echo admin_url( 'admin-post.php' ); ?>">
<?php wp_nonce_field($nonce['_action'], $nonce['_name']); ?>
<!-- https://developer.wordpress.org/reference/hooks/admin_post_action/ -->
<input type="hidden" name="action" value="add_patches">
<?php wp_nonce_field($nonce['_action'], $nonce['_name']); ?>
<div>
<input type="checkbox" id="calculation_patch" name="calculation" checked />
<label for="calculation_patch">calculation patch</label>