WordPress.org

Ready to get started?Download WordPress

Forums

Social
[resolved] Stript shortcodes (3 posts)

  1. Stodiamus
    Member
    Posted 2 years ago #

    Hi!

    Is there a possibility to use strip_shortcodes from the post content before posting on facebook/twitter?

    I use an image with [caption] shortcode, and it messes up the content posted on FB.

    http://wordpress.org/extend/plugins/social/

  2. Stodiamus
    Member
    Posted 2 years ago #

    Hi!

    Figured this one out by myself: I just edited the format_content filter method in lib/social/service.php. I also shortened the max_broadcast_length value from there.

    It pays not to be lazy when you have to come up with a solution ;) Great plugin, by the way!

  3. Alex King
    Member
    Plugin Author

    Posted 2 years ago #

    You should be able to use the filters instead of changing the core code. If you're not, please create a pull request on the GitHub repo.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.