Add property settings

This commit is contained in:
Hoang Huu
2020-02-28 15:12:31 +07:00
parent 40bcb3b3b2
commit ca997b7dde
9 changed files with 473 additions and 344 deletions

View File

@@ -343,3 +343,12 @@ function opalestate_single_property_sidebar_widgets() {
}
add_action( 'opalestate_single_property_sidebar', 'opalestate_single_property_sidebar_widgets', 99 );
function opalestate_hide_unset_amenities( $show ) {
if ( 'off' === opalestate_get_option( 'hide_unset_amenities', 'off' ) ) {
return false;
}
return true;
}
add_filter( 'opalestate_hide_unset_amenity', 'opalestate_hide_unset_amenities' );