WordPress.org

Support

Support » Plugins and Hacks » Code Snippets » [Resolved] [Plugin: Code Snippets] Suggestion – Bulk Export to PHP

[Resolved] [Plugin: Code Snippets] Suggestion – Bulk Export to PHP

  • The bulk export to XML is a very handy feature.

    Another very handy feature would be have a bulk export of the snippets into a single file, but with non of the XML markup. Make the output ‘usable’ PHP that could be cut and paste directly from the output file and used again, without having to remove the snippet, code, name, description markup.

    This would allow for quick and easy recycling of each snippet, in the event the user was not using the Code Snippets plugin on the next site.

    Thanks for the plugin, it is proving very handy!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shea Bunge

    @bungeshea

    That’s a nice idea, I don’t think that it would be very hard to implement. Maybe in a future version of Code Snippets.

    Great, I’ll be looking for it.
    Thanks Shea 🙂

    Plugin Author Shea Bunge

    @bungeshea

    This feature landed in version 1.5.

    You can export snippets to a PHP file by checking the checkboxes of the desired snippets and selecting ‘Export to PHP’ from the Bulk Actions drop-down menu.

    The exported PHP file will contain the snippet’s name and description in multi-line PHP comments, and below that the snippet’s code. This process is repeated for each snippet you choose to export.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Code Snippets] Suggestion – Bulk Export to PHP’ is closed to new replies.
Skip to toolbar