Viewing 3 replies - 1 through 3 (of 3 total)
  • I am trying to strip the shortcode as well, i found this function strip_shortcodes which can strip off the shortcode. However it will strip off the content enclosed by the shortcode.

    For example,
    "[myshortcode var1="1"]blah blah blah[/myshortcode] na na na"

    after parsing the above text with strip_shortcodes($text),

    The output will be:
    "na na na"

    What i want is just to strip off the tag itself rather than stripping the tags together with the content enclosed within the tag.

    Anyone know of any ready function to do that? I am lazy to code it myself.

    kentzo –

    I am really, really new to all of this. Where did you put the function to strip the shortcodes?

    Same problem. The shortcode in my case is Pretty File Links. The shortcode appears in the e-mail from Jetpack, like this:

    [prettyfilelink src=”https://www.forummagistrorum.com/wpb/wp-content/uploads/2012/12/Olympian-symbol-cards.pdf” type=”pdf”]Olympian symbol cards pdf[/prettyfilelink]

    I don’t expect Pretty Links in the e-mail, but regular links instead of the shortcode would be good.

    Is there any chance of a general Jetpack fix? Or are the different types of shortcodes too numerous?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Jetpack by WordPress.com] Strip Shortcodes from New Post Email’ is closed to new replies.