Hi, I'm designing a plugin for WordPress that allow admins to create sidebar content and blocks from the admin area without having to go and change the actual code in sidebar.php. The blocks and content will be stored in the database and be selectable for order of appearance and such.
This is being designed for non-programmers and such who don't know how to go in and alter the actual code in the template area.
So far the only way I see of adding content to the sidebar.php area is to hook into wp-meta and make an action to add my content when that is called by WordPress. One problem I see though is that most templates for WordPress have "hard coded" Meta area links and data (a big mistake in my opinion) such as admin login location, and other links. What I would like to do is create a way in my plugin to filter this stuff and give the user the ability to show this or not. Now the important bit is considering the target audience for my plugin, I can't expect the user to go in and mess with the code, I need the plugin to be able to do this for them.
Is there a way to capture this stuff and have an add_filter be able to do a str_replace to remove it? I suspect the_content won't see this stuff.
If there isn't a current way to do this I think there needs to be something added to affect this type of stuff. Optimally I want my plugin to work with any template.