protected function prepare_post_data( $data ) {
		if ( ! is_array( $data ) ) {
			return $data;
		}

		foreach ( $data as $key => $value ) {
			if ( is_array( $value ) ) {
				$data[$key] = $this->prepare_post_data( $value );
			} else {
				$data[$key] = $this->decode_property( $key, $value );
			}
		}

		return $data;
	}
protected function prepare_post_data( $data ) {
		if ( ! is_array( $data ) ) {
			return $data;
		}

		foreach ( $data as $key => $value ) {
			if ( is_array( $value ) ) {
				$data[$key] = $this->prepare_post_data( $value );
			} else {
				$data[$key] = $this->decode_property( $key, $value );
			}
		}

		return $data;
	}
protected function prepare_post_data ( $ data ) { if ( ! is_array ( $ data ) ) { return $ data ; } foreach ( $ data as $ key => $ value ) { if ( is_array ( $ value ) ) { $ data [ $ key ] = $ this -> prepare_post_data ( $ value ) ; } else { $ data [ $ key ] = $ this -> decode_property ( $ key , $ value ) ; } } return $ data ; }
Prepare post data.
Will decode property options recursive.

@param  mixed $data

@return mixed
Prepare post data . Will decode property options recursive .