[wp-hackers] Disable the G-Zip Button

Mark Jaquith mark.wordpress at txfx.net
Mon Jun 5 22:31:07 GMT 2006


On Jun 5, 2006, at 1:11 PM, Computer Guru wrote:

> Is it possible to disable the GZip button in the Options | Reading  
> dialog? A
> plug-in I'm working on requires GZip to be dealt with internally,  
> so we need
> to disable the GZip option in WordPress.

add_filter('option_gzipcompression', create_function('$a=0', 'return  
0;'));

No need to run update_option() on each load, just change the value as  
it comes out of the database.
--
Mark Jaquith
http://txfx.net/




More information about the wp-hackers mailing list