• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Genesis_Update_Check::validate_response() – Validate the format and data of the update response.

You appear to be a bot. Output may be restricted

Description

Validate the format and data of the update response.

Usage

$array = Genesis_Update_Check::validate_response( $response );

Parameters

$response
( array ) required – The response to validate.

Returns

array Empty array if invalid, otherwise unaltered response.

Source

File name: genesis/lib/classes/class-genesis-update-check.php


Lines:

1 to 16 of 16
  protected function validate_response( $response ) {

    if ( ! is_array( $response ) ) {
      return [];
    }

    foreach ( $this->req_data_keys as $req ) {
      if ( ! array_key_exists( $req, $response ) ) {
        return [];
      }
    }

    return $response;

  }
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: Genesis_Update_Check::validate_response
Class ref: Genesis_Update_Check
Plugin ref: Genesis Framework
Version: 3.3.5
Sourcefile: lib/classes/class-genesis-update-check.php
File ref: lib/classes/class-genesis-update-check.php
Deprecated?: No
API Letters: C,G,R,U,V

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites