| @@ -522,8 +522,16 @@ | ||
| 522 | 522 | |
| 523 | 523 | <!-- Welcome Massage--> |
| 524 | 524 | |
| 525 | 525 | <form method="POST"> |
| 526 | + | |
| 527 | + <?php | |
| 528 | + // Generate a nonce and pass it via a hidden field | |
| 529 | + $my_nonce = wp_create_nonce( 'my_plugin_update_field_action' ); | |
| 530 | + ?> | |
| 531 | + | |
| 532 | + <input type="hidden" name="my_plugin_nonce" value="<?php echo esc_attr( $my_nonce ); ?>"/> | |
| 533 | + | |
| 526 | 534 | <h2 class="general_h2">General Settings</h2> |
| 527 | 535 | |
| 528 | 536 | <div class="settings_block"> |
| 529 | 537 | <div class="style_box1"><label id="pub_id">Publisher ID :</label> |