• I have seen quite a number of plugin source codes. Many of them uses options.php as the page that handles HTML form. I wonder how it actually works.

    1. Where is options.php located? It seems some plugins do not have the file of this name under their plugin folder?

    2. Can we handle form by means of our own php file instead?

    Thanks,
    Narin

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    If plugins do not have their own options page, they are using the Settings API. Posts from the API go through wp-admin/options.php

    You can use you own PHP page, but unless you implement your form correctly, you will not have access to any WP functions. For back end forms, use the Admin Menus API. For front end forms make a Custom Page Template.

    You can also access WP functions by using AJAX techniques or the very similar interface through wp-admin/admin-post.php.

Viewing 1 replies (of 1 total)

The topic ‘options.php and FORM handling’ is closed to new replies.