You appear to be a bot. Output may be restricted
Description
Return all the fields to be used in an "Add new" formSimilar to bw_get_field_names() this gets the names of the fields to be displayed on the "Add new" form
Usage
$array = bw_add_new_fields_defaults( $post_type );
Parameters
- $post_type
- ( string ) required – the post_type to find fields for
Returns
array $names – the array of registered fields for the post_typeSource
File name: oik-fields/shortcodes/oik-new.phpLines:
1 to 12 of 12
function bw_add_new_fields_defaults( $post_type ) { global $bw_mapping; $names= array(); //bw_trace2( $bw_mapping ); //bw_backtrace(); if ( isset( $bw_mapping['field'][$post_type] )) { foreach ( $bw_mapping['field'][$post_type] as $field ) { $names[] = $field; } } return( $names ); }View on GitHub