opt settings page

This commit is contained in:
2026-05-06 18:43:03 +02:00
parent 5caaac7d33
commit 29393ebd81
3 changed files with 53 additions and 34 deletions

View File

@@ -59,7 +59,7 @@
<div id="form">
<form method="post" action="<?php echo admin_url('admin-post.php'); ?>">
<?php echo wp_nonce_field('go_form_action', 'go_form_nonce', true, false); ?>
<input type="hidden" name="action" value="go_form_submit">
<input type="hidden" name="action" value="go_form_handle_submission">
<input type="hidden" name="form_id" value="<?php echo esc_attr($form_id); ?>">
<div class="go-form-grid">

View File

@@ -32,12 +32,7 @@
<td> <?= esc_html($e->email) ?> </td>
<td> <?= esc_html($e->created_at) ?> </td>
<td>
<form method="post" action=" <?= admin_url('admin-post.php') ?> ">
<?= wp_nonce_field('go_form_delete_action', 'go_form_delete_nonce', true, false) ?>
<input type="hidden" name="action" value="go_form_delete_entry">
<input type="hidden" name="entry_id" value=" <?= esc_attr($e->id) ?> ">
<input type="submit" value="Delete" class="button delete" onclick="return confirm('Delete this entry?')">
</form>
<?php action_button('go_form_delete_entry', 'Delete', 'Delete this entry?', $e->id); ?>
</td>
<td> <?= esc_html($e->comment) ?> </td>