updates code to use wp_parse_args for simplicity