Update API
This commit is contained in:
@@ -191,4 +191,4 @@ abstract class Base_API {
|
||||
private function invalid_key() {
|
||||
return new WP_Error( 'rest_forbidden', esc_html__( 'Invalid API key!' ), array( 'status' => rest_authorization_required_code() ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -227,8 +227,7 @@ class Property_Api extends Base_Api {
|
||||
$property['amenities'] = $data->get_amenities();
|
||||
$property['types'] = $data->get_types_tax();
|
||||
$property['author_type'] = $data->get_author_type();
|
||||
$property['author_data'] = $data->get_author_link();
|
||||
|
||||
$property['author_data'] = $data->get_author_link_data();
|
||||
|
||||
return apply_filters( 'opalestate_api_properties_property', $property );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user