wp_parse_args
wp_parse_args ( $args, $defaults = '' )
Parameters:- (string|array) $args Value to merge with $defaults
- (array) $defaults Array that serves as the defaults.
Returns:- (array) Merged user defined values with defaults.
Defined at: - Introduced in WordPress: 2.2.0
- Deprecated in WordPress: -
Description
Merge 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.