Description
Query the field type given the field nameReturns the field type of the registered field or null
Usage
bw_query_field_type( $name );Parameters
- $name
- ( string ) required – the field name e.g. _date
Returns
voidSource
File name: oik-fields/shortcodes/oik-related.phpLines:
1 to 11 of 11
function bw_query_field_type( $name ) { global $bw_fields; $field = bw_array_get( $bw_fields, $name, null ); if ( $field ) { $field_type = bw_array_get( $field, "#field_type", null ); } else { bw_trace2( "Invalid field name" ); $field_type = null; } return( $field_type ); }View on GitHub
Called by
1 to 7 of 7
- bw_custom_column() – Display a custom column for a post
- bw_field() – Implement the [bw_field] shortcode
- bw_metadata() – Implement the [bw_fields] shortcode
- bw_navi_fetch_field_content() – Load the requested page for the field
- Tests_issue_2::test_bw_query_field_type() –
- Tests_issue_2::test_bw_register_field_for_object_type() –
- Tests_issue_65::test_bw_register_taxonomy() – bw_register_taxonomy() couldn’t be used to register the same taxonomy to multiple post types.
Invoked by
Calls
1 to 2 of 2
