GrayofD4
3/30/2017 - 11:24 PM

shortcode-primer.php

<?php

function shortcode_example ( $atts ) {

	$attr = shortcode_atts(array(
		'defaults' => NULL
	), $atts);

	if ( isset($attr['defaults']) ) {

	}

	$output = '';

	return $output;

} add_shortcode( 'shortcodetag', 'shortcode_example' );