WordPress filter hook · part of WordPress core

manage_posts_columns

A WordPress core filter that 7 plugins also fire themselves, running on 41K+ sites between them.

“This filter is documented in wp-admin/includes/class-wp-posts-list-table.php”

How to use manage_posts_columns

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

functions.php
add_filter( 'manage_posts_columns', function( $posts_columns, $post_type ) {
	// Change $posts_columns here.
	return $posts_columns;
}, 10, 2 );

Argument names come from SecuPress with Simple SSL's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

This hook is fired by WordPress core too. Official reference on developer.wordpress.org →

7 plugins that fire manage_posts_columns

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

  1. SecuPress with Simple SSL icon SecuPress with Simple SSL40,000+ installs apply_filters( 'manage_posts_columns', $posts_columns, $post_type ) free/classes/common/class-secupress-logs-list-table.php:576
  2. BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor icon BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor1,000+ installs apply_filters( 'manage_posts_columns', $columns ) includes/brikpanel-ase-bridge.php:96
  3. Admin Posts Grid icon Admin Posts Grid40+ installs apply_filters( 'manage_posts_columns', $posts_columns, $post_type ) includes/class-wp-posts-list-grid.php:732
  4. Admin Live Search icon Admin Live Search20+ installs apply_filters( 'manage_posts_columns', $posts_columns, $post_type ) admin/admin-live-search-post-table.php:728
  5. EditX icon EditX10+ installs apply_filters( 'manage_posts_columns', $columns, $post_type ) includes/Api/Types/AdminColumn.php:136
  6. PostPurge icon PostPurgeFewer than 10 installs apply_filters( 'manage_posts_columns', array(), 'post' ) includes/class-postpurge-bdp-plugin.php:713
  7. Smart Form Builder icon Smart Form BuilderFewer than 10 installs apply_filters( 'manage_posts_columns', $columns, Dragwyb_Post::POST_TYPE ) admin/form-overview/class-list-table.php:96

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.