add missing function
This commit is contained in:
@@ -56,6 +56,15 @@ function wiaas_get_organizations_with_role($role) {
|
|||||||
return is_array($terms) ? $terms : array();
|
return is_array($terms) ? $terms : array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves list of broker organizations in [ 'id' => 'name' ] format
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
function wiaas_get_brokers() {
|
||||||
|
return wiaas_get_organizations_with_role('administrator');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves list of commercial lead organizations in [ 'id' => 'name' ] format
|
* Retrieves list of commercial lead organizations in [ 'id' => 'name' ] format
|
||||||
*
|
*
|
||||||
@@ -134,7 +143,7 @@ function wiaas_get_organization_info($organization_id) {
|
|||||||
'description' => $organization->description,
|
'description' => $organization->description,
|
||||||
'vat_code' => get_term_meta($organization_id, '_wiaas_organization_vat', true),
|
'vat_code' => get_term_meta($organization_id, '_wiaas_organization_vat', true),
|
||||||
'phone' => get_term_meta($organization_id, '_wiaas_organization_phone', true),
|
'phone' => get_term_meta($organization_id, '_wiaas_organization_phone', true),
|
||||||
'email' => $email
|
'email' => $email
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user