• Resolved idono

    (@idono)


    Having some problems creating a submenu for my admin page. The registered hook for admin_menu doesn’t run.

    Code looks like this.

    add_action('admin_menu', 'fbaf_register_settings_page');
    
    function fbaf_register_settings_page(){
       add_options_page(
            'Facebook Album Fetcher Settings',
            'Facebook Album Fetcher',
            'manage_sites',
            'fbaf-settings',
            'fbaf_create_settings_page'
            );
    }

    If i hook it in to ‘init’ the action runs. But then the ‘add_option_page’ function doesn’t exist in the code.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘admin_menu action hook not running’ is closed to new replies.