/** * REST API: WP_REST_Response class * * @package WordPress * @subpackage REST_API * @since 4.4.0 */ /** * Core class used to implement a REST response object. * * @since 4.4.0 * * @see WP_HTTP_Response */ class WP_REST_Response extends WP_HTTP_Response { /** * Links related to the response. * * @since 4.4.0 * @var array */ protected $links = array(); /** * The route that was to create the response. * * @since 4.4.0 * @var string */ protected $matched_route = ''; /** * The handler that was used to create the response. * * @since 4.4.0 * @var null|array */ protected $matched_handler = null; /** * Adds a link to the response. * * {@internal The $rel parameter is first, as this looks nicer when sending multiple.} * * @since 4.4.0 * * @link https://tools.ietf.org/html/rfc5988 * @link https://www.iana.org/assignments/link-relations/link-relations.xml * * @param string $rel Link relation. Either an IANA registered type, * or an absolute URL. * @param string $href Target URI for the link. * @param array $attributes Optional. Link parameters to send along with the URL. Default empty array. */ public function add_link( $rel, $href, $attributes = array() ) { if ( empty( $this->links[ $rel ] ) ) { $this->links[ $rel ] = array(); } if ( isset( $attributes['href'] ) ) { // Remove the href attribute, as it's used for the main URL. unset( $attributes['href'] ); } $this->links[ $rel ][] = array( 'href' => $href, 'attributes' => $attributes, ); } /** * Removes a link from the response. * * @since 4.4.0 * * @param string $rel Link relation. Either an IANA registered type, or an absolute URL. * @param string|null $href Optional. Only remove links for the relation matching the given href. * Default null. */ public function remove_link( $rel, $href = null ) { if ( ! isset( $this->links[ $rel ] ) ) { return; } if ( $href ) { $this->links[ $rel ] = wp_list_filter( $this->links[ $rel ], array( 'href' => $href ), 'NOT' ); } else { $this->links[ $rel ] = array(); } if ( ! $this->links[ $rel ] ) { unset( $this->links[ $rel ] ); } } /** * Adds multiple links to the response. * * Link data should be an associative array with link relation as the key. * The value can either be an associative array of link attributes * (including `href` with the URL for the response), or a list of these * associative arrays. * * @since 4.4.0 * * @param array $links Map of link relation to list of links. */ public function add_links( $links ) { foreach ( $links as $rel => $set ) { // If it's a single link, wrap with an array for consistent handling. if ( isset( $set['href'] ) ) { $set = array( $set ); } foreach ( $set as $attributes ) { $this->add_link( $rel, $attributes['href'], $attributes ); } } } /** * Retrieves links for the response. * * @since 4.4.0 * * @return array List of links. */ public function get_links() { return $this->links; } /** * Sets a single link header. * * {@internal The $rel parameter is first, as this looks nicer when sending multiple.} * * @since 4.4.0 * * @link https://tools.ietf.org/html/rfc5988 * @link https://www.iana.org/assignments/link-relations/link-relations.xml * * @param string $rel Link relation. Either an IANA registered type, or an absolute URL. * @param string $link Target IRI for the link. * @param array $other Optional. Other parameters to send, as an associative array. * Default empty array. */ public function link_header( $rel, $link, $other = array() ) { $header = '<' . $link . '>; rel="' . $rel . '"'; foreach ( $other as $key => $value ) { if ( 'title' === $key ) { $value = '"' . $value . '"'; } $header .= '; ' . $key . '=' . $value; } $this->header( 'Link', $header, false ); } /** * Retrieves the route that was used. * * @since 4.4.0 * * @return string The matched route. */ public function get_matched_route() { return $this->matched_route; } /** * Sets the route (regex for path) that caused the response. * * @since 4.4.0 * * @param string $route Route name. */ public function set_matched_route( $route ) { $this->matched_route = $route; } /** * Retrieves the handler that was used to generate the response. * * @since 4.4.0 * * @return null|array The handler that was used to create the response. */ public function get_matched_handler() { return $this->matched_handler; } /** * Sets the handler that was responsible for generating the response. * * @since 4.4.0 * * @param array $handler The matched handler. */ public function set_matched_handler( $handler ) { $this->matched_handler = $handler; } /** * Checks if the response is an error, i.e. >= 400 response code. * * @since 4.4.0 * * @return bool Whether the response is an error. */ public function is_error() { return $this->get_status() >= 400; } /** * Retrieves a WP_Error object from the response. * * @since 4.4.0 * * @return WP_Error|null WP_Error or null on not an errored response. */ public function as_error() { if ( ! $this->is_error() ) { return null; } $error = new WP_Error(); if ( is_array( $this->get_data() ) ) { $data = $this->get_data(); $error->add( $data['code'], $data['message'], $data['data'] ); if ( ! empty( $data['additional_errors'] ) ) { foreach ( $data['additional_errors'] as $err ) { $error->add( $err['code'], $err['message'], $err['data'] ); } } } else { $error->add( $this->get_status(), '', array( 'status' => $this->get_status() ) ); } return $error; } /** * Retrieves the CURIEs (compact URIs) used for relations. * * @since 4.5.0 * * @return array Compact URIs. */ public function get_curies() { $curies = array( array( 'name' => 'wp', 'href' => 'https://api.w.org/{rel}', 'templated' => true, ), ); /** * Filters extra CURIEs available on REST API responses. * * CURIEs allow a shortened version of URI relations. This allows a more * usable form for custom relations than using the full URI. These work * similarly to how XML namespaces work. * * Registered CURIES need to specify a name and URI template. This will * automatically transform URI relations into their shortened version. * The shortened relation follows the format `{name}:{rel}`. `{rel}` in * the URI template will be replaced with the `{rel}` part of the * shortened relation. * * For example, a CURIE with name `example` and URI template * `http://w.org/{rel}` would transform a `http://w.org/term` relation * into `example:term`. * * Well-behaved clients should expand and normalize these back to their * full URI relation, however some naive clients may not resolve these * correctly, so adding new CURIEs may break backward compatibility. * * @since 4.5.0 * * @param array $additional Additional CURIEs to register with the REST API. */ $additional = apply_filters( 'rest_response_link_curies', array() ); return array_merge( $curies, $additional ); } } Property Submit – Front – Immobilier Los Angeles USA : Appartements, Maisons, Villas – Agence immobiliere a Los Angeles,achat vente,location, maison,appartement,villa a Los Angeles,Santa Monica,beverly hills,californie
These fields are mandatory: Title, Property Media
Property Description
Property Price
Select Categories

Select Property Status
Listing Media
    Drag and Drop Images or

    * At least 1 image is required for a valid submission.Minimum size is 500/500px.
    ** Double click on the image to select featured.
    *** Change images order with Drag & Drop.
    **** PDF files upload supported as well.
    ***** Images might take longer to be processed.

    Video Option
    Virtual Tour
    Listing Location

    Listing Details
    Amenities and Features
    Outdoor Details

    Other Features

    Compare Listings

    news-1701

    yakinjp


    sabung ayam online

    yakinjp

    yakinjp

    rtp yakinjp

    yakinjp

    judi bola online

    slot thailand

    yakinjp

    yakinjp

    yakin jp

    ayowin

    yakinjp id

    mahjong ways

    judi bola online

    mahjong ways 2

    JUDI BOLA ONLINE

    maujp

    maujp

    sabung ayam online

    sabung ayam online

    mahjong ways slot

    sbobet88

    live casino online

    sv388

    taruhan bola online

    maujp

    maujp

    maujp

    maujp

    sabung ayam online

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    118000230

    128000216

    128000217

    128000218

    128000219

    128000220

    128000221

    128000222

    128000223

    128000224

    128000225

    138000171

    138000172

    138000173

    138000174

    138000175

    138000176

    138000177

    138000178

    138000179

    138000180

    138000181

    138000182

    138000183

    138000184

    138000185

    138000186

    138000187

    138000188

    138000189

    138000190

    138000191

    138000192

    138000193

    138000194

    138000195

    138000196

    138000197

    138000198

    138000199

    138000200

    148000206

    148000207

    148000208

    148000209

    148000210

    148000211

    148000212

    148000213

    148000214

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    148000215

    158000096

    158000097

    158000098

    158000099

    158000100

    158000101

    158000102

    158000103

    158000104

    158000105

    158000106

    158000107

    158000108

    158000109

    158000110

    158000111

    158000112

    158000113

    158000114

    158000115

    158000116

    158000117

    158000118

    158000119

    158000120

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    168000175

    178000221

    178000222

    178000223

    178000224

    178000225

    178000226

    178000227

    178000228

    178000229

    178000230

    178000231

    178000232

    178000233

    178000234

    178000235

    178000236

    178000237

    178000238

    178000239

    178000240

    178000241

    178000242

    178000243

    178000244

    178000245

    178000246

    178000247

    178000248

    178000249

    178000250

    178000251

    178000252

    178000253

    178000254

    178000255

    178000256

    178000257

    178000258

    178000259

    178000260

    178000261

    178000262

    178000263

    178000264

    178000265

    188000266

    188000267

    188000268

    188000269

    188000270

    188000271

    188000272

    188000273

    188000274

    188000275

    188000276

    188000277

    188000278

    188000279

    188000280

    188000281

    188000282

    188000283

    188000284

    188000285

    188000286

    188000287

    188000288

    188000289

    188000290

    188000291

    188000292

    188000293

    188000294

    188000295

    198000171

    198000172

    198000173

    198000174

    198000175

    198000176

    198000177

    198000178

    198000179

    198000180

    198000181

    198000182

    198000183

    198000184

    198000185

    198000186

    198000187

    198000188

    198000189

    198000190

    198000191

    198000192

    198000193

    198000194

    198000195

    198000196

    198000197

    198000198

    198000199

    198000200

    218000081

    218000082

    218000083

    218000084

    218000085

    218000086

    218000087

    218000088

    218000089

    218000090

    218000091

    218000092

    218000093

    218000094

    218000095

    218000096

    218000097

    218000098

    218000099

    218000100

    218000101

    218000102

    218000103

    218000104

    218000105

    218000106

    218000107

    218000108

    218000109

    218000110

    228000061

    228000062

    228000063

    228000064

    228000065

    228000066

    228000067

    228000068

    228000069

    228000070

    228000071

    228000072

    228000073

    228000074

    228000075

    228000076

    228000077

    228000078

    228000079

    228000080

    228000081

    228000082

    228000083

    228000084

    228000085

    228000086

    228000087

    228000088

    228000089

    228000090

    238000186

    238000187

    238000188

    238000189

    238000190

    238000191

    238000192

    238000193

    238000194

    238000195

    238000196

    238000197

    238000198

    238000199

    238000200

    238000201

    238000202

    238000203

    238000204

    238000205

    238000206

    238000207

    238000208

    238000209

    238000210

    208000001

    208000002

    208000003

    208000004

    208000005

    208000006

    208000007

    208000008

    208000009

    208000010

    208000011

    208000012

    208000013

    208000014

    208000015

    208000016

    208000017

    208000018

    208000019

    208000020

    208000021

    208000022

    208000023

    208000024

    208000025

    208000026

    208000027

    208000028

    208000029

    208000030

    news-1701