manage_(screen_id)_custom_column хук-событиеWP 5.7.0

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.

Использование

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(строка)
The name of the column to display.
$item(WP_User_Request)
The item being shown.

Список изменений

С версии 5.7.0 Введена.

Где вызывается хук

WP_Privacy_Requests_Table::column_default()
manage_(screen_id)_custom_column
WP_Application_Passwords_List_Table::column_default()
manage_(screen_id)_custom_column
wp-admin/includes/class-wp-privacy-requests-table.php 502
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 );

Где используется хук в WordPress

Использование не найдено.