i have a custom plugin and i want the link to the plugin be accessible in the admin menu bar of the wp-admin
right now, im using below code. but the link to this shows under my settings. what hook should i replace with the add_option_page
?
function custom_plugin() {
add_options_page("my plugin", "plugin settings", 1, "my plugin", "custom_function");
}
add_action ('admin_menu', 'custom_plugin');