You appear to be a bot. Output may be restricted
Description
Return the array of field names for the selected post
Usage
$array = bw_get_field_names( $post_id );
Parameters
- $post_id
- ( ID ) required –
Returns
array registered field names for the post typeSource
File name: oik-fields/oik-fields.phpLines:
1 to 12 of 12
function bw_get_field_names( $post_id ) { $post_type = get_post_type( $post_id ); global $bw_mapping; $names= array(); //bw_trace( $bw_mapping, __FUNCTION__, __LINE__, __FILE__, "bw_mapping" ); if ( isset( $bw_mapping['field'][$post_type] )) { foreach ( $bw_mapping['field'][$post_type] as $field ) { $names[] = $field; } } return( $names ); }View on GitHub