Update dashbard properties.

This commit is contained in:
Hoang Huu
2019-09-25 17:07:35 +07:00
parent 82fa1a6d3d
commit 76feccd3d1
3 changed files with 66 additions and 60 deletions

View File

@@ -1147,3 +1147,18 @@ function opalestate_get_measurement_units() {
'm2' => esc_html__( 'm2', 'opalestate-pro' ),
] );
}
/**
* Returns property statuses.
*
* @return array
*/
function opalestate_get_property_statuses() {
return apply_filters( 'opalestate_get_property_statuses', [
'all' => esc_html__( 'All', 'opalestate-pro' ),
'publish' => esc_html__( 'Published', 'opalestate-pro' ),
'published' => esc_html__( 'Published', 'opalestate-pro' ),
'pending' => esc_html__( 'Pending', 'opalestate-pro' ),
'expired' => esc_html__( 'Expired', 'opalestate-pro' ),
] );
}