map_deep ( $value, $callback )
- (mixed) value The array, object, or scalar.
- (callable) callback The function to map onto $value.
- (mixed) The value with the callback applied to all non-arrays and non-objects inside it.
- Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Maps a function to all non-iterable elements of an array or an object.This is similar to `array_walk_recursive()` but acts upon objects too.