public function get_property() {
		$default_options = Papi_Core_Property::factory()->get_options();
		$keys            = array_keys( get_object_vars( $default_options ) );
		$options         = papi_get_qs( $keys, true );

		if ( $property = papi_property( $options ) ) {
			ob_start();

			$property->render_ajax_request();

			$html = ob_get_clean();

			wp_send_json( [
				'html' => utf8_encode( $html )
			] );

			return;
		}

		$this->render_error( 'No property found' );
	}
public function get_property() {
		$default_options = Papi_Core_Property::factory()->get_options();
		$keys            = array_keys( get_object_vars( $default_options ) );
		$options         = papi_get_qs( $keys, true );

		if ( $property = papi_property( $options ) ) {
			ob_start();

			$property->render_ajax_request();

			$html = ob_get_clean();

			wp_send_json( [
				'html' => utf8_encode( $html )
			] );

			return;
		}

		$this->render_error( 'No property found' );
	}
public function get_property ( ) { $ default_options = Papi_Core_Property :: factory ( ) -> get_options ( ) ; $ keys = array_keys ( get_object_vars ( $ default_options ) ) ; $ options = papi_get_qs ( $ keys , true ) ; if ( $ property = papi_property ( $ options ) ) { ob_start ( ) ; $ property -> render_ajax_request ( ) ; $ html = ob_get_clean ( ) ; wp_send_json ( [ 'html' => utf8_encode ( $ html ) ] ) ; return ; } $ this -> render_error ( 'No property found' ) ; }
Get property html via GET.

GET /papi-ajax/?action=get_property
Get property html via GET .