You appear to be a bot. Output may be restricted
Description
Check if the field should be displayed in the metabox
Currently we only prevent "taxonomy" fields from appearing in the metabox This may need to be extended to 'fieldref' fields, which are forms of virtual fields though we may choose to provide a different interface to allow these to be set.
Usage
$bool = bw_check_metabox_field( $data );
Parameters
- $data
- ( array ) required – Containing the #field_type and other values in #args
Returns
bool true if the field should be 'formed' in the metabox
Source
File name: oik/includes/bw_metadata.php
Lines:
1 to 9 of 9
function bw_check_metabox_field( $data ) { bw_trace2(); $metabox_field = true; switch ( $data['#field_type'] ) { case 'taxonomy': $metabox_field = false; } return( $metabox_field ); }