Collapse Advanced Custom Fields Repeater by default

How to make ACF repeater fields more readable? This function will collapse repeater fields by default:

[php]
/**
* Collapse ACF Repeater by default
*/
add_action(‘acf/input/admin_head’, ‘wpster_acf_repeater_collapse’);
function wpster_acf_repeater_collapse() {
?>


2 Comments

  1. Great code ! Working like a charm !
    One more question : how authorize only One Tab Open ?

    Thanks a lot

    Reply
  2. Great stuff, got sick of scrolling all the time!

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *