wordpress/wp-content/themes/basic/themify/themify-utils.php
/**
 * Modified version of wp_parse_args which adds filters to modify the args
 *
 * @return array
 * @since 2.7.7
 */
Modified version of wp_parse_args which adds filters to modify the args
@return array
@since 2.7.7
Modified version of wp_parse_args which adds filters to modify the args @return array @since 2 . 7 . 7
function themify_parse_args( $args, $defaults = '', $filter_key = '' ) {
	if ( is_object( $args ) ){
            $r = get_object_vars( $args );
        }
	elseif ( is_array( $args ) ){
            $r = & $args;
        }
	else{
            wp_parse_str( $args, $r );
        }
	if ( ! empty( $filter_key ) ){
		$r = apply_filters( 'themify_before_' . $filter_key . '_parse_args', $r );
        }
	if ( is_array( $defaults ) ){
		$r = array_merge( $defaults, $r );
        }
	if ( ! empty( $filter_key ) ){
		$r = apply_filters( 'themify_after_' . $filter_key . '_parse_args', $r );
        }
	return $r;
}
function themify_parse_args ( $ args , $ defaults = '' , $ filter_key = '' ) { if ( is_object ( $ args ) ) { $ r = get_object_vars ( $ args ) ; } elseif ( is_array ( $ args ) ) { $ r = & $ args ; } else { wp_parse_str ( $ args , $ r ) ; } if ( ! empty ( $ filter_key ) ) { $ r = apply_filters ( 'themify_before_' . $ filter_key . '_parse_args' , $ r ) ; } if ( is_array ( $ defaults ) ) { $ r = array_merge ( $ defaults , $ r ) ; } if ( ! empty ( $ filter_key ) ) { $ r = apply_filters ( 'themify_after_' . $ filter_key . '_parse_args' , $ r ) ; } return $ r ; }
Modified version of wp_parse_args which adds filters to modify the args
 @return array
 @since 2.7.7
Modified version of wp_parse_args which adds filters to modify the args @return array @since 2 . 7 . 7
// Setup a temporary array from $args // Passively filter the args before the parse // Parse // Aggressively filter the args after the parse // Return the parsed results