Advertisements

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

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: