• hi,
    i have create a test plugin this way;

    <?php
    /*
    Plugin Name: MYDEALaaa
    Description: Parses deal site and adds content as postaa
    Author: Zeran Temelaa
    Version: 1.0
    */
    
    add_action('admin_menu', 'oscimp_admin_actions');
    
    function oscimp_admin_actions() {
        add_options_page("OSCommerce Product Display", "OSCommerce Product Display", 6, "OSCommerce Product Display", "oscimp_admin");
    }
    
    function oscimp_admin() {
    
    }
    
    ?>

    ———-

    It displays in,
    Settings -> OSCommerce Product Display

    But when i click on that, it gives this error message
    You do not have sufficient permissions to access this page.

    https://mysite.com/samplesite/wp-admin/options-general.php?page=OSCommerceProductDisplay

    What is the reason for this?

    regards,
    zerandib

  • The topic ‘plugin creation basics’ is closed to new replies.