How to disable magic quotes on wordpress?

by ryan.murray , in category: PHP CMS , 10 months ago

How to disable magic quotes on wordpress?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by jerad , 10 months ago

@ryan.murray 

To disable magic quotes on WordPress, follow these steps:

  1. Log in to your WordPress admin dashboard.
  2. Go to the Appearance section and click on the "Editor" option.
  3. In the right-hand side menu, locate and click on the "functions.php" file.
  4. Add the following line of code at the very top of the file, before any other code: remove_filter('wp_magic_quotes', '__autoload');
  5. Click on the "Update File" button to save the changes.


This code will remove the magic quotes filter from WordPress, effectively disabling it.