Support » Plugin: Amazon Link » [Plugin: Amazon Link] Replacing shortcodes after plugin uninstall

  • nemoprofeta


    This plugin is without a doubt the most complete plugin for Amazon.
    I only have a concern. If in the future I have to uninstall it, all the shortcodes won’t be rendered anymore.
    Which the fastest and safest way to replace them with actual html code?
    Could a dedicated function be added?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author paulstuttard


    If you think it would be useful I could add something, obviously the content generated would be static so it would create hardcoded links to Amazon relevant to your default locale.

    It would need a bit of thought as when doing ‘bulk’ requests of AWS it tends to throttle the requests, so you might end up with a lot of ‘unpopulate’ templates (no images, titles, etc.).

    I’ll certainly look into it,




    Thank you. What I think it could be useful is something in case I uninstall the plugin. Obviously this would required compromises.
    I imagine a situation in which I have tens or hundreds of shortcodes that only Amazon Link can render and for some reason cannot use the plugin anymore.
    Replacing these shortcodes would require to manually search the article on Amazon and insert the HTML.

    Plugin Author paulstuttard


    A first version of this facility is now in the development version as an Extra called ‘Import/Export’ – I’ll probably change the name at some point!

    Currently it has three options,

    • Search -> to search for all shortcodes
    • Test -> To display what it will replace the shortcodes with
    • Replace -> To actual replace the post content

    The Replace option is currently hard coded to only work on the very latest post in the WordPress database.

    I have not addressed the AWS throttling issue yet…

    I have created a drop down list of things to replace the shortcode with:

    • Static content – Expand the Shortcode into static content (Not reversible)
    • Hidden Shortcodes – Replace shortcodes with HTML that won’t display in your posts (this is reversable)
    • Hidden Shortcode containing Static Content – A combination of the first two (this is reversible)
    • Remove Shortcode – Just delete all shortcodes from posts (Not reversible)

    Still very much work in progress!


    Thank you, it seems very good.
    Looking forward to the final product.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Amazon Link] Replacing shortcodes after plugin uninstall’ is closed to new replies.