Sending email doesn't work
Closed this issue · 2 comments
aafanasev commented
Method Realia_Query::get_property_agents returns array of IDs, but used as object $agent->ID
$agent = Realia_Query::get_property_agents( $post->ID );
if ( ! empty( $agent ) ) {
$email = get_post_meta( $agent->ID, REALIA_AGENT_PREFIX . 'email', true );
...
}
eriktelepovsky commented
Yes, you are right. Thank you. It is fixed now.
lukasvinclav commented
Fixed