Skip to content

Instantly share code, notes, and snippets.


Chee Zhiquan zenvisuals

  • Network Guard, ex-Skyscanner
  • Singapore
View GitHub Profile
zenvisuals / admin-settings.php
Created May 21, 2020
How to Setup Your First Wordpress Plugin?
View admin-settings.php
<h1>Very Simple Plugin Settings</h1>
<form id="vsp_settings_form" method="POST" action="<?= esc_url(admin_url('admin-post.php')); ?>">
<input type="hidden" name="action" value="vsp_update_option">
<label for="vsp_text_value">Highly Complicated Text</label>
<input type="text" name="vsp_text_value" id="vsp_text_value">
<?= submit_button("Submit") ?>
View very-simple-plugin.php
* Plugin Name: My Very Simple Plugin