You appear to be a bot. Output may be restricted
Description
format a custom column on the admin page IF the column is defined in bw_fields
Usage
bw_format_custom_column( $column, $data );
Parameters
- $column
- ( string ) optional – the column name – e.g. _pp_url
- $data
- ( string ) optional – the column's data value e.g. http://www.oik-plugins.com/oik-plugins/oik-fields ( [0] => _cookie_category [1] => Array ( [0] => 1 ) [2] => Array ( [#field_type] => select [#title] => Cookie category [#args] => Array ( [#options] => Array ( [0] => None [1] => Strictly necessary [2] => Performance [3] => Functionality [4] => Targeting/Advertising ) ) ) )
Returns
voidSource
File name: oik/libs/bw_fields.phpLines:
1 to 10 of 10
function bw_format_custom_column( $column=null, $data=null ) { // @TODO - this code can be replaced by bw_query_field_type(), perhaps $value = null; global $bw_fields; $field = bw_array_get( $bw_fields, $column, null ); if ( $field ) { $value = bw_theme_field( $column, $data, $field ); } return $value; }View on GitHub View on Trac