Utility Functions For Filters

WordPress provides certain filters which act as flags to enabled or disable features. An example would be use_default_gallery_style.

When working with these filters, you do not need to change the passed value. WordPress provides the following utility functions for this scenario:

To use any of these functions, pass them as a callback to add_filter():

add_filter( 'use_default_gallery_style', '__return_false' );