You appear to be a bot. Output may be restricted
Description
Determine the columns to be displayed in the tableSimilar to the logic for the [bw_table] shortcode
Usage
$bool = oiku_query_table_columns( $atts );
Parameters
- $atts
- ( array ) optional – array of NVP parameters containing "fields"
Returns
bool true if the fields include "excerpts" – which we can't do for users!Source
File name: oik-user/shortcodes/oik-user.phpLines:
1 to 12 of 12
function oiku_query_table_columns( $atts=null ) { global $field_arr, $title_arr; $field_arr = array(); $title_arr = array(); $field_arr = bw_assoc( bw_as_array( bw_array_get( $atts, "fields", "name,bio,email" ) )); $field_arr = apply_filters( "oik_table_fields_user", $field_arr, "user" ); $title_arr = bw_default_title_arr( $field_arr ); $title_arr = apply_filters( "oik_table_titles_user", $title_arr, "user", $field_arr ); bw_table_header( $title_arr ); $excerpts = in_array( "excerpt", $field_arr); return( $excerpts ); }View on GitHub