Answers for "elementor repeater max limit"

0

elementor repeater max limit

$this->add_control(
    'gallery',
    [
        'label'        => __( 'Gallery', 'ic-core' ),
        'type'         => Controls_Manager::REPEATER,
        'fields'       => $repeater->get_controls(),
        'item_actions' => [ // In my case I needed 4 items by default, no less no more.
            'add'       => false,
            'duplicate' => false,
            'remove'    => false,
            'sort'      => true,
        ],
        'default'      => [ [], [], [], [] ],
    ]
);
Posted by: Guest on October-14-2021

Browse Popular Code Answers by Language