manage_export-personal-data_custom_column
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.
This is one of the variants of the dynamic hook manage_(screen_id)_custom_column
Usage
add_action( 'manage_export-personal-data_custom_column', 'wp_kama_manage_export_personal_data_custom_column_action', 10, 2 );
/**
* Function for `manage_export-personal-data_custom_column` action-hook.
*
* @param string $column_name The name of the column to display.
* @param WP_User_Request $item The item being shown.
*
* @return void
*/
function wp_kama_manage_export_personal_data_custom_column_action( $column_name, $item ){
// action...
}
- $column_name(string)
- The name of the column to display.
- $item(WP_User_Request)
- The item being shown.
Changelog
| Since 5.7.0 | Introduced. |
Where the hook is called
manage_export-personal-data_custom_column
wp-admin/includes/class-wp-privacy-requests-table.php 529
do_action( "manage_{$this->screen->id}_custom_column", $column_name, $item );