The task is landing on WP, you need to show to hide the necessary blocks. Ie in admin do section with checkboxes. I put the checkbox in the admin panel on the site of the block that is tied to the checkbox and vice versa. I tried to do it via add_action ('', '') And ACF doesn’t work ... Tell me how you can implement ..

    1 answer 1

    In the code of the main page you get an array of checkboxes. Suppose $ cheks After, in the code of the page you wrap the necessary blocks in the structure:

    if ($cheks[0] == true) { ?> <div>...</div> <? } ?> 

    So for the right blocks