wordpress options page update meta date on submit -


i trying make plugin, prints posts of type attachment, , enables quick edit of title , alt text.

i know how print posts get_posts, , know how update alt text update_post_meta.

the problem having running update_post_meta on form submission in admin options page. can find how submit settings.

so need know how execute code on submit.

add_action('admin_menu', 'plugin_create_menu');  function plugin_create_menu() {     add_menu_page('my cool plugin settings', 'cool settings', 'administrator', __file__, 'plugin_settings_page') ); }  function plugin_settings_page() {     ?>     <div class="wrap">         <h2>plugin</h2>          <form method="post" action="options.php">               <input type="submit" value="submit">         </form>     </div> <?php } ?> 


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -