ACF\Pro\Fields\FlexibleContent
Render::clones
Renders the ACF clone indexes for the layouts.
Method of the class: Render{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->clones();
Changelog
| Since 6.5 | Introduced. |
Render::clones() Render::clones code ACF 6.8.8
private function clones() {
echo '<div class="clones">';
if ( ! empty( $this->layouts ) ) {
foreach ( $this->layouts as $layout ) {
$clone = new Layout( $this->field, $layout, 'acfcloneindex', array() );
$clone->render();
}
}
echo '</div>';
}