Support » Plugin: Better Click To Tweet » Uninstalling Better Click to Tweet

  • Resolved txampa


    Hello guys!!
    We have been using your pluggin some months but our users don’t click in the box to share via Twitter the information. So I’ve decide to uninstall
    If I uninstall your pluggin, the old highlights with this Tweets are left in all post.

    So, how I can unistall the pluggin and delete all this highlights inside the post?
    Is this possible?

    Thank you very much!

Viewing 1 replies (of 1 total)
  • Plugin Contributor wpsteward


    Hi there,

    Sorry to see you go! Unfortunately, there’s no function for removing the shortcodes from the content on uninstall. My plugin cleans up after itself as much as possible, by removing the shortcode and any options it created in the database, but since every actual code is different, there’s no way (that I know of) to remove them. Though this is an interesting feature request, and I am going to have to look into how I might make that happen.

    There is a strip_shortcodes() function, but that removes ALL shortcodes, not just BCTT shortcodes.

    My best recommendation would be to first make a backup of your database that you know how to restore from, and then use this plugin to do a search-and-replace for all bctt shortcodes More instructions on that below.

    If you do not create a backup that you know how to restore from, the next steps could irreparably damage your entire site, so please do that first.

    1. Install this plugin:
    2. Navigate to Tools –> Search Regex
    3. Place this in the “search pattern” box: /\[[^\[]*bctt[^\]]*\]/
    4. check the “case insensitive” box
    5. click Replace.

    If it finds the correct text, and everything looks good, repeat the process but click “Replace and Save.”

Viewing 1 replies (of 1 total)
  • The topic ‘Uninstalling Better Click to Tweet’ is closed to new replies.