manage_(screen_id)_custom_column
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.
Usage
add_action( 'manage_(screen_id)_custom_column', 'wp_kama_manage_screen_id_custom_column_action', 10, 2 ); /** * Function for `manage_(screen_id)_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_screen_id_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_(screen_id)_custom_column
manage_(screen_id)_custom_column
wp-admin/includes/class-wp-privacy-requests-table.php 508
do_action( "manage_{$this->screen->id}_custom_column", $column_name, $item );
wp-admin/includes/class-wp-application-passwords-list-table.php 141
do_action( "manage_{$this->screen->id}_custom_column", $column_name, $item );