WordPress filter hook

db_pretty_output_table_header

Fired by 4 WordPress plugins, running on 70+ sites between them.

How to use db_pretty_output_table_header

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'db_pretty_output_table_header', function( $output ) {
	// Change $output here.
	return $output;
}, 10, 1 );

Argument names come from Debug Bar Post Types's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

4 plugins that fire db_pretty_output_table_header

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Debug Bar Post Types icon Debug Bar Post Types30+ installs apply_filters( 'db_pretty_output_table_header', $output ) inc/debug-bar-pretty-output/class-debug-bar-pretty-output.php:550
  2. Debug Bar Constants icon Debug Bar Constants20+ installs apply_filters( 'db_pretty_output_table_header', $output ) inc/debug-bar-pretty-output/class-debug-bar-pretty-output.php:550
  3. Debug Bar Taxonomies icon Debug Bar Taxonomies10+ installs apply_filters( 'db_pretty_output_table_header', $output ) inc/debug-bar-pretty-output/class-debug-bar-pretty-output.php:550
  4. Debug Bar Screen Info icon Debug Bar Screen Info10+ installs apply_filters( 'db_pretty_output_table_header', $output ) inc/debug-bar-pretty-output/class-debug-bar-pretty-output.php:546

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.