I know how to add metaboxes to custom post_types. But what I want is to add a metabox to a custom menu page I created... His my line of thinking which is apparently wrong:
/*BACKEND SETTINGS&*/
add_action('admin_menu', 'add_car_settings_page');
function add_car_settings_page(){
add_submenu_page('edit.php?post_type=inventory', 'Inventory Settings', 'Inventory Settings', 'manage_options', 'my-inventory-settings', 'add_car_settings');
}
function add_car_settings(){
echo"hi";
add_meta_box('my-car-settings', 'Car Inventory Settings', 'add_car_settings_form', 'my-inventory-settings', 'normal', 'high');
}
function add_car_settings_form($post){
echo"my metabox";
}