Title: Bulk edit
Last modified: August 31, 2016

---

# Bulk edit

 *  Resolved [Argumentum](https://wordpress.org/support/users/argumentum0/)
 * (@argumentum0)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bulk-edit-13/)
 * Hi,
 * Is there a recommended or “safe” way to bulk edit the snippets?
 * I have tried editing the file `post-snippets-export.cfg`, zipping it and importing
   it back, but that didn’t work (all the snippets were erased). Apparently even
   a small edit can break the file.
 * Thanks again.
 * [https://wordpress.org/plugins/post-snippets/](https://wordpress.org/plugins/post-snippets/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Johan Steen](https://wordpress.org/support/users/artstorm/)
 * (@artstorm)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bulk-edit-13/#post-7096115)
 * Hi,
 * Yes, when you export the snippets, they are exported as a serialized PHP array.
   A serialized array can be edited, but it’s quite tricky and easy to corrupt it.
   Each string in the export is prefixed with the length of the string. ie.
 *     ```
       s:3:"foo";
       ```
   
 * which defines that a string of 3 characters would follow. If just replacing with
   another string of the same length, it would work out of the box. i.e..
 *     ```
       s:3:"bar";
       ```
   
 * and it still works fine, but if changing the length of the string, also the string
   length value needs to be updated. ie.
 *     ```
       s:3:"foobar";
       ```
   
 * will not work, while
 *     ```
       s:6:"foobar";
       ```
   
 * will work.
 * Cheers,
    Johan
 *  Thread Starter [Argumentum](https://wordpress.org/support/users/argumentum0/)
 * (@argumentum0)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/bulk-edit-13/#post-7096118)
 * Great, thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bulk edit’ is closed to new replies.

 * ![](https://ps.w.org/post-snippets/assets/icon-128x128.gif?rev=2545587)
 * [Post Snippets - Custom WordPress Code Snippets Customizer](https://wordpress.org/plugins/post-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/post-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-snippets/reviews/)

## Tags

 * [edit](https://wordpress.org/support/topic-tag/edit/)
 * [export](https://wordpress.org/support/topic-tag/export/)
 * [Import](https://wordpress.org/support/topic-tag/import/)
 * [mass-edit](https://wordpress.org/support/topic-tag/mass-edit/)

 * 2 replies
 * 2 participants
 * Last reply from: [Argumentum](https://wordpress.org/support/users/argumentum0/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/bulk-edit-13/#post-7096118)
 * Status: resolved