Skip to content

Admin column display

scribu edited this page Dec 30, 2012 · 6 revisions

Below are examples of values you can pass when registering a connection type to control where columns are added when viewing lists of posts in the admin:

Enabling admin columns

p2p_register_connection_type( array(
  ...
  'admin_column' => 'any'
) );

Possible values:

  • 'any' - show admin columns everywhere:
  • 'from' - show the admin column only on the 'from' end
  • 'to' - show the admin column only on the 'to' end
  • false - don't show admin columns at all (default)