You appear to be a bot. Output may be restricted
Description
Determine a meta_value based on the field type, the specified meta_value and possibly the "meta_compare" parameter
Usage
$string = bw_related_meta_value( $atts, $meta_key );
Parameters
- $atts
- ( array ) required – array of parameters which may or may not contain the meta_value parameter
- $meta_key
- ( string ) required – the field name from which we determine the field type
Returns
string $meta_value to useSource
File name: oik-fields/shortcodes/oik-related.phpLines:
1 to 8 of 8
function bw_related_meta_value( $atts, $meta_key ) { $meta_value = bw_array_get( $atts, "meta_value", null ); $field_type = bw_query_field_type( $meta_key ); bw_trace2( $field_type, "field_type" ); $meta_value = apply_filters( "oik_default_meta_value_${field_type}", $meta_value, $atts ); //bw_trace2( $meta_value, "meta_value" ); return( $meta_value ); }View on GitHub