• For more details, please see this post. This is the shortform:

    I need help on inserting the proper code into the wordpress admin backend to allow a user to edit the various options of my created plugin. I have read extensively on the subject, but since I am a learning php from scratch (with very limited programming background) I am just going in circles. It seems the wordpress codex is written by developers for developers, which is fine, except that I am missing some key chunks of basic knowledge (for example, why do I need to define my own functions?). Anyway:

    How can I insert my options form into wordpress? — My present form is self submitting, and writes the configuration to an ini file in the plugins’ own directory (flat file).

    From my research I have figured out that I need something like the following code in a file in the /wp-content/plugins/ directory:

    /*
    Plugin Name: WP-My Name
    Plugin URI: someurl
    Description: Blah.
    Version: 0.001
    Author: Me
    Author URI: someurl
    */

    add_options_page(__("Plugin Test Page"), __('PlugTest'), 5, plugdir(__FILE__) .'form.php');

    At which point the form.php would take over by including and reading the ini file, and various other files in the plugdir.

    The problem is that this doesna€?t work. What am I doing wrong? I have tried looking at other authors methods, but frankly what they do is way over my head. I need a simple example.

Viewing 4 replies - 16 through 19 (of 19 total)
Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Adding admin menu functionality’ is closed to new replies.