_get_list_table [ WordPress Function ]
_get_list_table ( $class )
| Access: |
|
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: _get_meta_table, get_lastpostdate, wp_get_post_tags, _get_last_post_time, get_last_updated
Fetch an instance of a WP_List_Table class.
Source
<?php
function _get_list_table( $class ) {
$core_classes = array(
//Site Admin
'WP_Posts_List_Table' => 'posts',
'WP_Media_List_Table' => 'media',
'WP_Terms_List_Table' => 'terms',
'WP_Users_List_Table' => 'users',
'WP_Comments_List_Table' => 'comments',
'WP_Post_Comments_List_Table' => 'comments',
'WP_Links_List_Table' => 'links',
'WP_Plugin_Install_List_Table' => 'plugin-install',
'WP_Themes_List_Table' => 'themes',
'WP_Theme_Install_List_Table' => array( 'themes', 'theme-install' ),
'WP_Plugins_List_Table' => 'plugins',
// Network Admin
'WP_MS_Sites_List_Table' => 'ms-sites',
'WP_MS_Users_List_Table' => 'ms-users',
'WP_MS_Themes_List_Table' => 'ms-themes',
);
if ( isset( $core_classes[ $class ] ) ) {
foreach ( (array) $core_classes[ $class ] as $required )
require_once( ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php' );
return new $class;
}
return false;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/ get list table « WordPress Codex
Function Reference/ get list table ... Usage. <?php _get_list_table( $class ) ?> ... Source File. _get_list_table() is located in /wp-admin/includes/list-table.php .
codex.wordpress.org - _get_list_table (WordPress Function) - WPSeek.com
WordPress lookup for _get_list_table, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - Add Custom Filter to Admin User list - WordPress - Stack Exchange
Feb 24, 2011... stuff comes without good action or filter hooks, it would have been so easy had they added an apply_filters() call to _get_list_table() . Grmpf.
wordpress.stackexchange.com - PHPXRef 0.7 : WordPress : Function Reference: _get_list_table()
Function and Method Cross Reference. _get_list_table(). Defined at: /wp-admin/ includes/list-table.php -> line 10. Referenced 30 times: ...
phpxref.ftwr.co.uk