acf-codifier icon indicating copy to clipboard operation
acf-codifier copied to clipboard

Block settings and attributes in block template

Open jmaekki opened this issue 4 years ago • 0 comments

Is there a way to get block settings and attributes in the block template when using PHP renderer (or CallableRenderer)? Currently, PHP renderer extracts only $fields['data'], but I would like to have $block variable too ($fields['block'] in this case) to get, for example, block align or ID.

jmaekki avatar Apr 08 '21 16:04 jmaekki