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' );
Used in GWP blog
function shortcode_without_extract( $atts ) { $atts = shortcode_atts( array( 'id' => '', ), $atts ); return $atts['id']; } add_shortcode( 'test', 'shortcode_without_extract' );