',
],
[
- 'name' => esc_html__( 'Parking', 'opalestate-pro' ),
- 'id' => $prefix . 'parking',
- 'type' => 'text',
- 'attributes' => [
- 'type' => 'number',
- 'pattern' => '\d*',
- ],
- 'sanitization_cb' => 'absint',
- 'escape_cb' => 'absint',
- 'description' => esc_html__( 'Enter number of Parking', 'opalestate-pro' ),
+ 'name' => esc_html__( 'Parking', 'opalestate-pro' ),
+ 'id' => $prefix . 'parking',
+ 'type' => 'text',
+ 'description' => esc_html__( 'Enter number of Parking', 'opalestate-pro' ),
],
[
- 'name' => esc_html__( 'Bedrooms', 'opalestate-pro' ),
- 'id' => $prefix . 'bedrooms',
- 'type' => 'text',
- 'attributes' => [
- 'type' => 'number',
- 'pattern' => '\d*',
- ],
- 'sanitization_cb' => 'absint',
- 'escape_cb' => 'absint',
- 'description' => esc_html__( 'Enter number of bedrooms', 'opalestate-pro' ),
+ 'name' => esc_html__( 'Bedrooms', 'opalestate-pro' ),
+ 'id' => $prefix . 'bedrooms',
+ 'type' => 'text',
+ 'description' => esc_html__( 'Enter number of bedrooms', 'opalestate-pro' ),
],
[
- 'name' => esc_html__( 'Bathrooms', 'opalestate-pro' ),
- 'id' => $prefix . 'bathrooms',
- 'type' => 'text',
- 'attributes' => [
- 'type' => 'number',
- 'pattern' => '\d*',
- ],
- 'sanitization_cb' => 'absint',
- 'escape_cb' => 'absint',
- 'description' => esc_html__( 'Enter number of bathrooms', 'opalestate-pro' ),
+ 'name' => esc_html__( 'Bathrooms', 'opalestate-pro' ),
+ 'id' => $prefix . 'bathrooms',
+ 'type' => 'text',
+ 'description' => esc_html__( 'Enter number of bathrooms', 'opalestate-pro' ),
],
[
'name' => esc_html__( 'Plot Size', 'opalestate-pro' ),
@@ -288,16 +269,10 @@ class Opalestate_Property_MetaBox_Submission {
'description' => esc_html__( 'Enter size of Plot as 20x30, 20x30x40, 20x30x40x50', 'opalestate-pro' ),
],
[
- 'name' => esc_html__( 'Area Size', 'opalestate-pro' ),
- 'id' => $prefix . 'areasize',
- 'type' => 'text',
- 'attributes' => [
- 'type' => 'number',
- 'pattern' => '\d*',
- ],
- 'sanitization_cb' => 'absint',
- 'escape_cb' => 'absint',
- 'description' => esc_html__( 'Enter size of area in sqft', 'opalestate-pro' ),
+ 'name' => esc_html__( 'Area Size', 'opalestate-pro' ),
+ 'id' => $prefix . 'areasize',
+ 'type' => 'text',
+ 'description' => esc_html__( 'Enter size of area in sqft', 'opalestate-pro' ),
],
[
'name' => esc_html__( 'Orientation', 'opalestate-pro' ),
@@ -306,43 +281,25 @@ class Opalestate_Property_MetaBox_Submission {
'description' => esc_html__( 'Enter Orientation of property', 'opalestate-pro' ),
],
[
- 'name' => esc_html__( 'Living Rooms', 'opalestate-pro' ),
- 'id' => "{$prefix}livingrooms",
- 'type' => 'text',
- 'attributes' => [
- 'type' => 'number',
- 'pattern' => '\d*',
- ],
- 'sanitization_cb' => 'absint',
- 'escape_cb' => 'absint',
- 'description' => esc_html__( 'Enter Number of Living Rooms', 'opalestate-pro' ),
+ 'name' => esc_html__( 'Living Rooms', 'opalestate-pro' ),
+ 'id' => "{$prefix}livingrooms",
+ 'type' => 'text',
+ 'description' => esc_html__( 'Enter Number of Living Rooms', 'opalestate-pro' ),
],
[
- 'name' => esc_html__( 'Kitchens', 'opalestate-pro' ),
- 'id' => "{$prefix}kitchens",
- 'type' => 'text',
- 'attributes' => [
- 'type' => 'number',
- 'pattern' => '\d*',
- ],
- 'sanitization_cb' => 'absint',
- 'escape_cb' => 'absint',
- 'description' => esc_html__( 'Enter Number of Kitchens', 'opalestate-pro' ),
+ 'name' => esc_html__( 'Kitchens', 'opalestate-pro' ),
+ 'id' => "{$prefix}kitchens",
+ 'type' => 'text',
+ 'description' => esc_html__( 'Enter Number of Kitchens', 'opalestate-pro' ),
],
[
- 'name' => esc_html__( 'Rooms', 'opalestate-pro' ),
- 'id' => "{$prefix}amountrooms",
- 'type' => 'text',
- 'attributes' => [
- 'type' => 'number',
- 'pattern' => '\d*',
- ],
- 'sanitization_cb' => 'absint',
- 'escape_cb' => 'absint',
- 'description' => esc_html__( 'Enter Number of Amount Rooms', 'opalestate-pro' ),
- 'after_row' => '