[wp-hackers] Disable the G-Zip Button

Peter Westwood peter.westwood at ftwr.co.uk
Mon Jun 5 17:36:20 GMT 2006

Computer Guru wrote:
> Doesn't that option turn GZip on or off? I need to disable the button
> itself.

Yes it does

If you really need to disable the button rather than just forcing the
option to off then you will have to output buffer the options page and
preg_replace it out.

But it would be easier to hook on 'init' or 'plugins_loaded' and force
the option off every time

Peter Westwood

More information about the wp-hackers mailing list