manage_(screen_id)_sortable_columns filter-hook . WP 3.1.0
Filters the list table sortable columns for a specific screen.
The dynamic portion of the hook name, $this->screen->id, refers to the ID of the current screen.
Usage
add_filter( 'manage_(screen_id)_sortable_columns', 'filter_function_name_8119' ); function filter_function_name_8119( $sortable_columns ){ // filter... return $sortable_columns; }
- $sortable_columns(array)
- An array of sortable columns.
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
manage_(screen_id)_sortable_columns
wp-admin/includes/class-wp-list-table.php 1130
$_sortable = apply_filters( "manage_{$this->screen->id}_sortable_columns", $sortable_columns );