You appear to be a bot. Output may be restricted
Description
Create "Fields" meta box for each field associated with each object type in the mapping
We only need to create a Fields box if we have fields for the active post_type. The $bw_mapping['fields'][$post_type] array will not exist until a field has been added. for the post type. We also check that $bw_mapping contains 'fields'
Usage
bw_effort_meta_boxes( $post_type, $post );
Parameters
- $post_type
- ( string ) required – the post type being edited
- $post
- ( object ) required – the post being edited
Returns
void
Source
File name: oik/includes/bw_metadata.php
Lines:
1 to 11 of 11
function bw_effort_meta_boxes( $post_type, $post ) { oik_require( 'bobbforms.inc' ); global $bw_mapping; bw_trace2( $bw_mapping ); if ( is_array( $bw_mapping ) && count( $bw_mapping['field'] ) ) { $fields = bw_array_get( $bw_mapping['field'], $post_type, null ); if ( $fields ) { add_meta_box( 'bw_effort', __( "Fields", "oik"), 'bw_effort_box', $post_type, 'normal' , 'high' , $fields ); } } }