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:

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.

Related Functions

wp_parse_str, wp_parse_id_list, wp_kses_attr, wp_rss, wp_create_tag

Top Google Results

User discussions

wpseek mobile