If you want to automate some sort of change in file content, you will be better off using native PHP file and string handling functions instead of working through the theme editor. You do have to be sure your changes are rock solid. If any sort of syntax error is introduced to an active theme file, it will crash the entire site.
What is it that you want to automate? There are few good reasons to alter theme files. There is usually a better way to accomplish something.
]]>Well because of NDA I sadly can’t get into the details but the customer needs to automate some processes as he manages quite a lot of WordPress based website as I understood.
Of course it would be easier to do it with PHP but the customer requirement is to do everything from the administration panel.
Any help is really appreciated. I tried looking at the Javascript code of the theme editor but couldn’t find where is the validation occurring.
]]>