Fixes. Tag 1.4.9.2

This commit is contained in:
Hoang Huu
2020-05-21 17:08:16 +07:00
parent 4ddb72638e
commit 05d30614ed
15 changed files with 102 additions and 63 deletions

View File

@@ -211,7 +211,7 @@ function opalestate_toggle_featured_property() {
$check = apply_filters( 'opalestate_set_feature_property_checked', false );
if ( $check ) {
do_action( 'opalestate_toggle_featured_property_before', $user_id, $property_id );
update_post_meta( $property_id, OPALESTATE_PROPERTY_PREFIX . 'featured', 1 );
update_post_meta( $property_id, OPALESTATE_PROPERTY_PREFIX . 'featured', 'on' );
echo json_encode( [ 'status' => true, 'msg' => esc_html__( 'Could not set this as featured', 'opalestate-pro' ) ] );
wp_die();
}