wp-customize-utils.php 402 B

123456789101112131415161718
  1. <?php
  2. /**
  3. *
  4. * Get a value from an object at the given location.
  5. *
  6. * @param array $array The array describing the location of the property to update.
  7. * @param object $object The object.
  8. * @return object The value at the location.
  9. *
  10. */
  11. function get_settings_array( $array, $object ) {
  12. foreach ( $array as $property ) {
  13. $object = $object[ $property ];
  14. }
  15. return $object;
  16. }