Пример #1
0
/**
 * Prints column headers for a particular screen.
 *
 * @since 2.7.0
 */
function print_column_headers($screen, $id = true)
{
    $wp_list_table = new _WP_List_Table_Compat($screen);
    $wp_list_table->print_column_headers($id);
}
Пример #2
0
/**
 * Gets hidden column names for a particular screen.
 *
 * @since 2.7.0
 * @deprecated 3.1.0
 * @deprecated Use WP_List_Table
 *
 * @param string $screen
 * @return array
 */
function get_hidden_columns($screen)
{
    _deprecated_function(__FUNCTION__, '3.1', 'WP_List_Table');
    global $wp_list_table;
    if (!is_a($wp_list_table, 'WP_List_Table')) {
        $wp_list_table = new _WP_List_Table_Compat($screen);
    }
    return $wp_list_table->get_hidden_columns();
}