I'm trying to register a custom menu widget programmatically with
wp_register_sidebar_widget, but it doesn't appear in wordpress. I'm using remote call of that method (xml-rpc). Referring to codex I'm passing parametres like that to that method:
wp_register_sidebar_widget( 'custom_menu_widget-1', 'My name', 'WP_Nav_Menu_Widget', array( 'description' => 'blogroll' ) );
It should create custom menu widget named 'My name', but it registers nothing. I think that third parameter
$output_callback may be wrong, but I can't find nowhere, what callback should be for custom menus. I've got no output or error from that call, so I can't see what is wrong. Maybe I miss something or there is another way to register custom menu widget? I don`t want to edit function.php, I just want to register standard custom menu widget using wp methods.