Attribute Quote Style in WordPress HTML

First of all, either quotes are as good as each other. See this question

There is no way you can do this with a plugin, action or filter. To achieve this you will have to do this manually by using the “find and replace” option on your IDE. I do not advise you to do this as:

  • You may end up breaking your WordPress core
  • You will lose all changes next time you will update your WordPress
  • You will have to go case by case as situations like these may appear:

echo <link rel="" . echo $bar . "" href="' . echo $foo . '";

in which case you will have to invert double quotes for single quotes and vice versa.

This will be very time consuming for what you will get in return.

As a matter of fact WordPress coding standards accept both quotation styles:

See WordPress HTML Coding Standards on Quotes