WP_Privacy_Requests_Table::column_default()
Handles the default column.
Method of the class: WP_Privacy_Requests_Table{}
Hooks from the method
Return
null
. Nothing (null).
Usage
$WP_Privacy_Requests_Table = new WP_Privacy_Requests_Table(); $WP_Privacy_Requests_Table->column_default( $item, $column_name );
- $item(WP_User_Request) (required)
- Item being shown.
- $column_name(string) (required)
- Name of column being shown.
Changelog
Since 4.9.6 | Introduced. |
Since 5.7.0 | Added manage_{$this->screen->id}_custom_column action. |
WP_Privacy_Requests_Table::column_default() WP Privacy Requests Table::column default code WP 6.8
public function column_default( $item, $column_name ) { /** * Fires for each custom column of a specific request type in the Privacy Requests list table. * * Custom columns are registered using the {@see 'manage_export-personal-data_columns'} * and the {@see 'manage_erase-personal-data_columns'} filters. * * The dynamic portion of the hook name, `$this->screen->id`, refers to the ID given to the list table * according to which screen it's displayed on. * * Possible hook names include: * * - `manage_export-personal-data_custom_column` * - `manage_erase-personal-data_custom_column` * * @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 ); }