Display a stylised “Add Row” button zone for a better integration.
Enhanced field readability by adding spacers between rows.
/**
* acfe/repeater/lock
*
* @bool $lock Should lock
* @array $field Repeater array
*/
filter('acfe/repeater/lock', $lock, $field);
filter('acfe/repeater/lock/name=my_repeater', $lock, $field);
filter('acfe/repeater/lock/key=field_abc123', $lock, $field);
add_filter('acfe/repeater/lock/name=my_repeater', 'my_acf_repeater_lock', 10, 2);
function my_acf_repeater_lock($lock, $field){
// lock rows
return true;
}
/**
* acfe/repeater/remove_actions
*
* @bool $remove Should remove
* @array $field Repeater array
*/
filter('acfe/repeater/remove_actions', $remove, $field);
filter('acfe/repeater/remove_actions/name=my_repeater', $remove, $field);
filter('acfe/repeater/remove_actions/key=field_abc123', $remove, $field);
add_filter('acfe/repeater/remove_actions/name=my_repeater', 'my_acf_repeater_remove_actions', 10, 2);
function my_acf_repeater_remove_actions($remove, $field){
// remove actions
return true;
}