WordPress.org

Ready to get started?Download WordPress

Forums

Code Snippets
[resolved] Looking forward to the import/export feature (14 posts)

  1. Pete
    Member
    Posted 2 years ago #

    Great idea for a plugin, but as it is probably going to be used by developers mostly it definitely needs the import/export feature... looking forward to seeing the update :)

    http://wordpress.org/extend/plugins/code-snippets/

  2. Pete
    Member
    Posted 2 years ago #

    Can I copy any snippets I’ve created to another WordPress site?
    The import/export feature is currently in development. You can however, use the import/export feature of phpMyAdmin to copy the wp_snippets table to another WordPress database.

    A tutorial with pretty pictures would be cool to show us noobs how to do this :)

  3. Shea Bunge
    Member
    Plugin Author

    Posted 2 years ago #

    Good idea. I'll start working on it and it will be posted to my blog when it's done.

  4. Pete
    Member
    Posted 2 years ago #

    Thanks heaps

  5. Clifford Paulick
    Member
    Posted 1 year ago #

    +5 for import/export ;-)

  6. Shea Bunge
    Member
    Plugin Author

    Posted 1 year ago #

    Import/export feature added in version 1.3.

  7. Pete
    Member
    Posted 1 year ago #

    Is there a way I can display code in the decscription text area. For example I add the code snippet and then in the description i'd like to show the code i need to use to implement that snippet in my theme file. maybe some sort of tinymce button?

    thanks Pete

  8. Shea Bunge
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Pete,
    Have a look at this Codex page.

  9. Pete
    Member
    Posted 1 year ago #

    Ahh thanks :)

  10. Pete
    Member
    Posted 1 year ago #

    Thanks so much for the import export feature, this plugin is destined to be one of the great plugins (for me anyway). Cheers!

  11. Pete
    Member
    Posted 1 year ago #

    Any chance in getting a batch import/export feature?

    whoops... just worked it out :)

  12. Clifford Paulick
    Member
    Posted 1 year ago #

    I haven't tried it out yet, but thank you for it. :-)

    Does it blow away everything that's in there (upon import) or does it just add new snippets? If just adds, doesn't erase everything first, what would trigger a duplicate?

    Thank you.

  13. Pete
    Member
    Posted 1 year ago #

    You'd want it to add to not replace the current functions.php as it may(probably) screw up your theme. You'd need to know what's in your current functions.php in any case... :)

  14. Shea Bunge
    Member
    Plugin Author

    Posted 1 year ago #

    Snippets are added to the database along with the existing snippets.

    There is no way to have a duplicate snippet when importing. This is because the only thing that identifies a snippet is its ID. When you export snippets only the name, description and code is stored. On import the next available ID number is assigned to each snippet.
    All snippets are inactive on import, regardless of their status on the original site.

    You can also learn more about the import/export process by clicking on the 'Help' tab on the top-right corner of the 'Import Snippet' page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic