updated indentation and used wp_parse_args