Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Shortcode without extract

Used in GWP blog

function shortcode_without_extract( $atts ) {

	$atts = shortcode_atts(
		array(
			'id' => '',
		), $atts
	);

	return $atts['id'];

}
add_shortcode( 'test', 'shortcode_without_extract' );