Linux 软件免费装
Banner图

CS2FS Converter

开发者 follaky
更新时间 2026年10月30日 20:38
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

migration export import code snippets fluent snippets

下载

1.1

详情介绍:

Moving from Code Snippets to Fluent Snippets? This plugin copies your snippets across, puts each one in the right place, and tells you which ones need a look before you switch them on. It started as a Python script of mine. This is the same idea, inside WordPress. How it works
  1. Go to Tools > CS2FS Converter. You'll see all your snippets, what each one becomes in Fluent Snippets, and any notes.
  2. Untick the ones you don't want and click Generate. You get a JSON file to keep as a backup.
  3. Open Fluent Snippets and click "Import local". Done.
Everything arrives as a draft, so nothing runs twice while Code Snippets is still active. When you're ready, deactivate Code Snippets and publish the snippets you need. What carries over What needs a look The converter flags these, both on the list and after the import: Snippets in the trash are left out. Once you've moved everything, delete this plugin. You only need it once. Where each snippet goes You can still change the type of any snippet on the list before exporting.

安装:

  1. Install the plugin from Plugins > Add New, or upload the ZIP there.
  2. Activate it.
  3. Go to Tools > CS2FS Converter.
You need Code Snippets (free or Pro) with your snippets in it, and Fluent Snippets installed for the import.

常见问题:

Does it change my Code Snippets?

No. It only reads them. Your snippets stay in Code Snippets until you delete them yourself.

Why are the imported snippets drafts?

So the same code doesn't run twice. Two copies of a function in both plugins can take a site down. Deactivate Code Snippets first, then publish in Fluent Snippets.

Where is the export file saved?

You download it, and a copy goes to wp-content/uploads/cs2fs_export/ for the "Import local" button. That folder is blocked from the web on Apache and the files get random names. On Nginx, block the folder in your server config or delete the files after importing.

My snippet starts with a namespace. Anything to watch?

Yes, if it was a front-end only snippet. The converter adds a short admin check at the top of the code, and PHP needs namespace to come first. Move the check below it after importing.

Does it work on multisite?

It converts each site's own snippets. Network-wide snippets aren't read.

Is this an official Code Snippets or Fluent Snippets plugin?

No. It's an independent tool by Folla Ky and isn't affiliated with either plugin.

更新日志:

1.1 1.0