我有一个块复制了;“列”;块我的问题是我不想使用默认值save 函数,但改用回调函数。正如我所用InnerBlocks我的edit 看起来像这样
edit: ( props, setAttributes, className ) => {
.
.
.
<InnerBlocks
template={ getColumnsTemplate( props.attributes.columns ) }
templateLock="all"
allowedBlocks={ ALLOWED_BLOCKS } />
默认情况下,“保存”功能将使用此作为返回输出内容:
<InnerBlocks.Content />应该如何render_callback php中的函数InnerBlocks 所容纳之物
也如果save 退货null 然后我放在块中的内容不会被保存。