wp_parse_args
wp_parse_args ( $args, $defaults = array() )
Parameters:- (string|array|object) args Value to merge with $defaults.
- (array) defaults Optional. Array that serves as the defaults. Default empty array.
Returns:- (array) Merged user defined values with defaults.
Defined at:Change Log: - Introduced in WordPress: 2.2.0
- Deprecated in WordPress: —
Description
Merges user defined arguments into defaults array.This function is used throughout WordPress to allow for both string or array
to be merged into another array.