To disable magic quotes on WordPress, follow these steps:
- Log in to your WordPress admin dashboard.
- Go to the Appearance section and click on the "Editor" option.
- In the right-hand side menu, locate and click on the "functions.php" file.
- Add the following line of code at the very top of the file, before any other code:
- Click on the "Update File" button to save the changes.
This code will remove the magic quotes filter from WordPress, effectively disabling it.