{"repo":"benplum/ACF-Auto-Blocks","free":true,"listed":false,"github":"https://github.com/benplum/ACF-Auto-Blocks","clone":"git clone https://github.com/benplum/ACF-Auto-Blocks.git","description":"Auto-register ACF field groups as blocks in the new editor (Gutenberg).","language":"PHP","stars":42,"topics":["wordpress","gutenberg","blocks","acf"],"license":null,"category":"cli-tools","readme_excerpt":"ACF Auto Blocks Auto-register ACF field groups as blocks in the block editor. Creating Blocks ACF Auto Blocks includes a wp-cli command for creating new blocks: This will create a new directory in your theme named /acf-blocks/foo containing a block.json , group block foo.json , and template.php file. You can generate additional files using the CLI Hooks. Once the block has been created, head to your admin and import the new field group to start adding fields to your block. You can edit the block.json based on the WordPress block metadata and ACF Block API v2. Once your fields are setup, start editing the template.php to output the field data. Theme Hooks acf/auto blocks/directory Filters block directory. Must return path relative to site install. Defaults to {path-to-theme}/acf-blocks . acf/auto blocks/v2/parse block options Filters block options used for register block type . acf/auto blocks/v1/parse block options Filters block options used for acf register block . (Deprecated) acf/auto blocks/block data Filters block field data. acf/auto blocks/block settings Filters block settings. acf/auto blocks/block preview Filters admin block preview. acf/auto blocks/render block Filters front-end block ouput. CLI Hooks acf/auto blocks/cli/build json Filters block json file. acf/auto blocks/cli/build field group Filters ACF field group json file. acf/auto blocks/cli/build template Filters template php file. acf/auto blocks/cli/make block Run after base block files have been created. N","default_branch":null,"files":null,"tree":[],"storefront":"/r/benplum","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/benplum/ACF-Auto-Blocks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}