New feature: my-hacks.php


In the past if you were going to add a filter or hack you would have to modify one of the existing WP files and your changes would then be overwritten when you upgraded to a new version. No more. I’ve just checked in the code that adds a new option where you can enable or disable a hacks file. When this option is enabled it checks for a file called my-hacks.php in your WordPress root and if the file exists, it includes the code from that file. Hopefully this will make it easier for hack writers to structure their code and write instructions for installation, and it will be easier for users because they won’t have to redo all their hacks and extensions every time their upgrade or overwrite a file. Discussion in the hacks forum.


Get the Latest Updates

WP Briefing — The WordPress Podcast

Join Josepha Haden and Matt Mullenweg to learn about where WordPress is going and how you can get involved.