WordPress.org

Ready to get started?Download WordPress

Forums

Amazon Link
Replacing shortcodes after plugin uninstall (5 posts)

  1. nemoprofeta
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/amazon-link/

  2. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    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,

    Paul

  3. nemoprofeta
    Member
    Posted 1 year ago #

    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.

  4. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    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!

    http://downloads.wordpress.org/plugin/amazon-link.zip

    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!

    Paul

  5. nemoprofeta
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.