That could be good, if there would be a filter, what is applied for the whole page.
like
<?php add_filter('whole_page','function'); ?>
That could be good, if there would be a filter, what is applied for the whole page.
like
<?php add_filter('whole_page','function'); ?>
thank
how would that actually help though?
there's already header and footer hooks and filters that will work just the same.
It would help me. I've written a plugin which scans all page output for XSS and spam whether it's injected into post/page content or a theme and filters out anything not on a whitelist. My thought was to minimise the damage for anyone who's had their WP hacked because their hosting service wasn't secure.
Unfortunately you need to hack index.php to get it working so I haven't released it until I can figure out a more user friendly way to do it.
If you're that hacked, can't the hacker edit source to get rid of your scan?
I'd have thought a filter like this would need the whole of the output to be buffered. Could be done, but rather an imposition on site owners who might prefer unbuffered output.
You must log in to post.