Title: Register blocks programmatically
Last modified: June 6, 2022

---

# Register blocks programmatically

 *  Resolved [Stanislav Khromov](https://wordpress.org/support/users/khromov/)
 * (@khromov)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/register-blocks-programmatically/)
 * 👋 Hi! Would it be possible to add to [the documentation](https://lazyblocks.com/documentation/getting-started/)
   how to register blocks programmatically? I’m imagining a workflow where developers
   build blocks in the UI, export them to JSON and this JSON could then be registered
   programmatically (or automatically, similar to [ACF Local JSON](https://www.advancedcustomfields.com/resources/local-json/))
 * Would really help when you are making custom projects and want to put the blocks
   in code rather than in the database.
    -  This topic was modified 3 years, 12 months ago by [Stanislav Khromov](https://wordpress.org/support/users/khromov/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/register-blocks-programmatically/#post-15726778)
 * Hey.
 * Unfortunately, it is not possible to use JSON in the way as it works in the ACF
   plugin. You can only export the block to PHP and add this PHP code in your theme
   or in a plugin. Look at the “Generate PHP” here – [https://lazyblocks.com/documentation/export-blocks/](https://lazyblocks.com/documentation/export-blocks/)
 * Regards, nK.

Viewing 1 replies (of 1 total)

The topic ‘Register blocks programmatically’ is closed to new replies.

 * ![](https://ps.w.org/lazy-blocks/assets/icon-256x256.png?rev=2584676)
 * [Custom Block Builder - Lazy Blocks](https://wordpress.org/plugins/lazy-blocks/)
 * [Support Threads](https://wordpress.org/support/plugin/lazy-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/lazy-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazy-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazy-blocks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nK](https://wordpress.org/support/users/nko/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/register-blocks-programmatically/#post-15726778)
 * Status: resolved