how do i logout wordpress without confirmation

  1. First, navigate to the "wp-login.php" file in your WordPress installation directory using an FTP client or file manager.
  2. Locate the line of code that reads "session_start();" and add the following line directly beneath it: "session_destroy();"
  3. Save the changes to the "wp-login.php" file and close it.
  4. You can now log out of WordPress without confirmation by simply refreshing or navigating away from the page.