php How to add custom button in wordpress admin section

function custom_admin_button() { add_menu_page( 'Custom Button', 'Custom Button', 'manage_options', 'custom-button-slug', 'custom_button_callback', 'dashicons-admin-generic', 99 ); }

function custom_button_callback() { echo 'This is where your custom button content goes.'; }

add_action('admin_menu', 'custom_admin_button');