WP_Privacy_Requests_Table::column_default

Advertisement

Summery Summery

Default column handler.

Syntax Syntax

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

Parameters Parameters

$item

(WP_User_Request) (Required) Item being shown.

$column_name

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

Return Return

(string) Default column output.

Source Source

File: wp-admin/includes/class-wp-privacy-requests-table.php

	 * @param WP_User_Request $item        Item being shown.
	 * @param string          $column_name Name of column being shown.
	 * @return string Default column output.
	 */
	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 );

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.6 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.