BP_Admin_Types::column_headers( array $column_headers = array() )

Filters the terms list table column headers to customize them for BuddyPress Types.


Parameters Parameters

$column_headers

(array) (Optional) The column header labels keyed by column ID.

Default value: array()


Top ↑

Return Return

(array) The column header labels keyed by column ID.


Source Source

File: bp-core/classes/class-bp-admin-types.php

	public function column_headers( $column_headers = array() ) {
		if ( isset( $column_headers['name'] ) ) {
			$column_headers['name'] = __( 'Type ID', 'buddypress' );
		}

		unset( $column_headers['cb'], $column_headers['description'], $column_headers['posts'] );

		$column_headers['plural_name'] = __( 'Name', 'buddypress' );
		$column_headers['counts']      = _x( 'Count', 'Number/count of types', 'buddypress' );

		return $column_headers;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.