The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [SOLVED]help with wordpress admin class

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #31157

    I am trying to develop my own class for the wordpress admin area to add my own menu and I am having trouble. I get an error that says

    call_user_func_array() expects parameter 1 to be a valid callback, function ‘register_mysettings’ not found or invalid function name

    class lucidDevelopments
    function lucidDevelopments()
    add_action('admin_menu', array(&$this, 'lucid_admin_menu'));

    function lucid_admin_menu()
    add_menu_page('Paradiso Options', 'Paradiso Options', 'administrator', __FILE__, array(&$this, 'paradiso_settings_page'), screen_icon());
    add_submenu_page('Paradiso Options','Settings','Settings','administrator','',array(&$this, 'settings'));
    //run the function to register settings in the forms
    add_action( 'admin_init', 'register_mysettings' );

    //registering the settings
    function register_mySettings(){

    function paradiso_settings_page()
    wp_die(__("You do not have sufficient permissions to access this page."));
    } ?>

    Paradiso Options Page

    Intro Text


    $runLucidDevelopmentsAdmin = &new lucidDevelopments();
Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.