Description
Return the meta_value to use – either the value of the current post or the value of a post meta field of type noderef
Usage
$ID = oik_fields_default_meta_value_meta_key( $meta_value );Parameters
- $meta_value
- ( string ) required – the specified meta_value
Returns
ID the post ID to useSource
File name: oik-fields/oik-fields.phpLines:
1 to 10 of 10
function oik_fields_default_meta_value_meta_key( $meta_value ) { $field_type = bw_query_field_type( $meta_value ); if ( $field_type == "noderef" ) { $meta_value = get_post_meta( bw_global_post_id(), $meta_value, true ); } else { bw_trace2( $meta_value, "defaulting meta_value" ); $meta_value = bw_global_post_id(); } return( $meta_value ); }View on GitHub
Called by
1 to 1 of 1
