• soteke

    (@soteke)


    I’m using spam Karma and bastats and both plugins have a page in the admin aerea. I mean, for example, you can go to options and there you have a button for spam karma. How is it possible? Which code make this?
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Joshua Sigar

    (@alphaoide)

    Thread Starter soteke

    (@soteke)

    I have a problem. My plugin is activated and the plugin has the following function:
    function menu_administrador(){
    add_options_page(‘Wp citas’, ‘Citas’, 8, __FILE__);
    }

    so it’s supposed to create a submenu in the options page, but nothing happens. Could someone say what I’m doing wrong?

    ColdForged

    (@coldforged)

    How are you calling this function? Did you read the entire page referenced and follow the example?

    Thread Starter soteke

    (@soteke)

    this function is part of a plugin which is activated I think this is the way it shoud be called (or not?). I read the entire page referenced like 30 times and followed the example but perhaps I’m understanding nothing…

    ColdForged

    (@coldforged)

    At the very bottom of the example code there is this:

    // Insert the mt_add_pages() sink into the plugin hook list for 'admin_menu'
    add_action('admin_menu', 'mt_add_pages');

    You need to do the same thing, but replace mt_add_pages with menu_administrador.

    Thread Starter soteke

    (@soteke)

    ok thank you very much

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how does a plugin to “create” a page in the admin aerea?’ is closed to new replies.