You appear to be a bot. Output may be restricted
Description
Check if the field should be displayed in the metaboxCurrently 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 metaboxSource
File name: oik/includes/bw_metadata.phpLines:
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 ); }View on GitHub View on Trac