WP_Privacy_Requests_Table::column_default() WordPress Method

The WP_Privacy_Requests_Table::column_default() method is used to display the default content for a privacy request table column. This method is called by the WP_Privacy_Requests_Table::single_row() method for each privacy request in the table. The default columns that are displayed in the privacy request table are: "ID", "Email Address", "Request Type", and "Status". The WP_Privacy_Requests_Table::column_default() method can be used to add additional columns to the privacy request table.

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

Default column handler.


Parameters

$item

(WP_User_Request)(Required)Item being shown.

$column_name

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


Top ↑

Source

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

494
495
496
497
498
499
500
501
502
503
504
505
506
507
public function column_default( $item, $column_name ) {
    /**
     * Fires for each custom column of a specific request type in the Requests list table.
     *
     * Custom columns are registered using the {@see 'manage_export-personal-data_columns'}
     * and the {@see 'manage_erase-personal-data_columns'} filters.
     *
     * @since 5.7.0
     *
     * @param string          $column_name The name of the column to display.
     * @param WP_User_Request $item        The item being shown.
     */
    do_action( "manage_{$this->screen->id}_custom_column", $column_name, $item );
}


Top ↑

Changelog

Changelog
VersionDescription
5.7.0Added manage_{$this->screen->id}_custom_column action.
4.9.6Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by the Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.