strip_shortcode_tag

Definition:
function strip_shortcode_tag( $m ) {}

Parameters

  • $m

Source code

function strip_shortcode_tag( $m ) {

	// allow [[foo]] syntax for escaping a tag

	if ( $m[1] == '[' && $m[6] == ']' ) {

		return substr($m[0], 1, -1);

	}



	return $m[1] . $m[6];

}

17077

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: