I need to add a menu item but it is available as a parent item, I am trying it as follows but in the menu option it is shown as the child of the parent item Settings> My plugins name:
add_action( 'admin_menu', 'my_plugin' );
function my_plugin() {
add_options_page(
'My Options',
'My plugins name',
'my_plugin',
'my-plugin.php',
'my_plugin_page'
);
}
I have reviewed this section: https://codex.wordpress.org/Roles_and_Capabilities, but there are many options, I am learning to create plugins for Wordpress.
Thank you very much for your help.