wp_list_table_class_name
Filters the list table class to instantiate.
Usage
add_filter( 'wp_list_table_class_name', 'wp_kama_list_table_class_name_filter', 10, 2 ); /** * Function for `wp_list_table_class_name` filter-hook. * * @param string $class_name The list table class to use. * @param array $args An array containing _get_list_table() arguments. * * @return string */ function wp_kama_list_table_class_name_filter( $class_name, $args ){ // filter... return $class_name; }
- $class_name(string)
- The list table class to use.
- $args(array)
- An array containing _get_list_table() arguments.
Changelog
Since 6.1.0 | Introduced. |
Where the hook is called
wp_list_table_class_name
wp-admin/includes/list-table.php 68
$custom_class_name = apply_filters( 'wp_list_table_class_name', $class_name, $args );