wp_list_table_class_name
Filter HookDescription
Filters the list table class to instantiate.Hook Information
File Location |
wp-admin/includes/list-table.php
View on GitHub
|
Hook Type | Filter |
Line Number | 68 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$class_name
|
The list table class to use. |
array
|
$args
|
An array containing _get_list_table() arguments. |
Usage Examples
Basic Usage
<?php
// Hook into wp_list_table_class_name
add_filter('wp_list_table_class_name', 'my_custom_filter', 10, 2);
function my_custom_filter($class_name, $args) {
// Your custom filtering logic here
return $class_name;
}
Source Code Context
wp-admin/includes/list-table.php:68
- How this hook is used in WordPress core
<?php
63 * @since 6.1.0
64 *
65 * @param string $class_name The list table class to use.
66 * @param array $args An array containing _get_list_table() arguments.
67 */
68 $custom_class_name = apply_filters( 'wp_list_table_class_name', $class_name, $args );
69
70 if ( is_string( $custom_class_name ) && class_exists( $custom_class_name ) ) {
71 $class_name = $custom_class_name;
72 }
73
PHP Documentation
<?php
/**
* Filters the list table class to instantiate.
*
* @since 6.1.0
*
* @param string $class_name The list table class to use.
* @param array $args An array containing _get_list_table() arguments.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-admin/includes/list-table.php
Related Hooks
Related hooks will be displayed here in future updates.