I messed around with the get_nestable_children method for custom-elements and noticed that the ‘deletable’ & ‘clonable’ settings both don’t do anything anymore. Also tested it with the nav-menu & offcanvas and also not working.
Is this on purpose or was it depracted?
/**
* MARK: Get Nestable Children
*/
public function get_nestable_children()
{
$selector = $this->name;
$elements = [];
foreach (Misc::$avaibleLanguages as $code => $lang) {
$name = $lang['name'];
$elements[] = [
'name' => 'block',
'label' => esc_html__('Content', 'bricks') . " [$name]",
'deletable' => false, // Prevent deleting this element directly. NOTE: Undocumented (@since 1.8)
'cloneable' => false, // Prevent cloning this element directly. NOTE: Undocumented (@since 1.8)
'settings' => [
'tag' => 'div',
'_hidden' => [
'_cssClasses' => "{$selector}__content",
],
],
];
}
return $elements;
}
Best Regards
Suat