WordPress.org

New feature: my-hacks.php

Posted December 15, 2003 by Matt Mullenweg. Filed under Development.

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.

See Also:

Want to follow the code? There’s a development P2 blog and you can track active development in the Trac timeline that often has 20–30 updates per day.

Want to find an event near you? Check out the WordCamp schedule and find your local Meetup group!

For more WordPress news, check out the WordPress Planet or subscribe to the WP Briefing podcast.

Categories

Subscribe to WordPress News

Join 1,927,765 other subscribers

%d bloggers like this: