WP_Privacy_Requests_Table::column_default( WP_User_Request $item, string $column_name )

Default column handler.


Description Description


Parameters Parameters

$item

(WP_User_Request) (Required) Item being shown.

$column_name

(string) (Required) Name of column being shown.


Top ↑

Return Return

(string) Default column output.


Top ↑

Source Source

File: wp-admin/includes/user.php

	public function column_default( $item, $column_name ) {
		$cell_value = $item->$column_name;

		if ( in_array( $column_name, array( 'created_timestamp' ), true ) ) {
			return $this->get_timestamp_as_date( $cell_value );
		}

		return $cell_value;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
4.9.6 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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