how i can add checkbox in my wordpress plugin

how i can add checkbox and a save button in my wordpress plugin to activate and deactivate it here is my code: <?php /* Plugin Name: My Plugin Description: A test plugin Author: Marco Version: 1.0 */ add_action(‘admin_menu’, ‘test_plugin_setup_menu’); function test_plugin_setup_menu(){ add_menu_page( ‘Test Plugin Page’, ‘Test Plugin’, ‘manage_options’, ‘test-plugin’, ‘test_init’ ); } function test_init(){ echo…

Add User in Admin and Redirect to Edit Profile Page instead of Users List

I’m probably missing something super simple, but how can I redirect the admin user to the edit profile page when they create a new user? I’ve tried to hook into this: edit_user_created_user and then do something like …. if(!empty($_GET[‘id’]) && !empty($_GET[‘update’]) && ($_GET[‘update’] == ‘add’)) { $userid = $_GET[‘id’]; $user = get_userdata( $userid ); wp_redirect(…