You appear to be a bot. Output may be restricted
Description
Display the required fields in the formNote: We ignore any fields that have the additional attribute of #form => false
Usage
_bw_show_new_post_fields( $fields );
Parameters
- $fields
- ( array ) required – array of field definitions to be completed for this post type
Returns
voidSource
File name: oik-fields/shortcodes/oik-new.phpLines:
1 to 16 of 16
function _bw_show_new_post_fields( $fields ) { global $bw_fields; //bw_backtrace(); if ( count( $fields )) { bw_trace2( $fields, "fields", false, BW_TRACE_VERBOSE ) ; foreach ( $fields as $field ) { $data = $bw_fields[$field]; $value = ""; $form = bw_array_get( $data['#args'], "#form", true ); if ( $form ) { $data = _bw_form_required_field( $data ); bw_form_field( $field, $data['#field_type'], $data['#title'], $value, $data['#args'] ); } } } }View on GitHub