You appear to be a bot. Output may be restricted
Description
Get the string value for a noderef
Usage
$string = oikai_get_noderef_value( $post_id, $noderef_name, $field_name );
Parameters
- $post_id
- ( mixed ) required –
- $noderef_name
- ( mixed ) required –
- $field_name
- ( mixed ) required –
Returns
string the value of noderef.fieldTO DO
This is equivalent to a function like get_fieldref(); which would be in oik-fieldsSource
File name: oik-shortcodes/shortcodes/oik-api-importer.phpLines:
1 to 9 of 9
function oikai_get_noderef_value( $post_id, $noderef_name, $field_name ) { $node_id = get_post_meta( $post_id, $noderef_name, true ); if ( $node_id ) { $value = get_post_meta( $node_id, $field_name, true ); } else { $value = null; } return( $value ); }View on GitHub