Hi,
in your documentation I find this code:
$has_connection = MB_Relationships_API::has( $from, $to, $id );
if ( $has_connection ) {
echo 'They have a relationship.';
} else {
echo 'No, they do not have any relationship.';
}
We have metabox.io pro, and we have setup a relation to test (relation is corretly displyed in backend).
I have tried to insert it (inserting correct IDs in $from, $to, $id) in functions.php but retun a fatal error:
Fatal error: Uncaught Error: Class 'MB_Relationships_API' not found in .... functions.php
Where I can test this code? thanks
Claudio