Title: Inner Blocks late processing request
Last modified: July 2, 2022

---

# Inner Blocks late processing request

 *  Resolved [rinart73](https://wordpress.org/support/users/rinart73/)
 * (@rinart73)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/inner-blocks-late-processing-request/)
 * Could we get an option (toggle maybe) to process Inner Blocks field manually 
   inside block PHP code?
    Basically I have lazy block that is supposed to act as
   a wrapper and display its inner blocks conditionally. So there is no point in
   process Inner Blocks if they’re not gonna be displayed.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/inner-blocks-late-processing-request/#post-15801747)
 * Hey.
 * Try the simple if condition in the PHP. For example with check for toggle field
   value:
 *     ```
       <p>
         <?php
         if ($attributes['toggle_control']) {
           echo $attributes['inner_blocks_control'];
         }
         ?>
       </p>
       ```
   
 * Regards, nK.
 *  Thread Starter [rinart73](https://wordpress.org/support/users/rinart73/)
 * (@rinart73)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/inner-blocks-late-processing-request/#post-15802024)
 * I know about this, but the problem here is that all inner blocks are parsed and
   processed by WordPress in any case, even if the condition is not met.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Inner Blocks late processing request’ is closed to new replies.

 * ![](https://ps.w.org/lazy-blocks/assets/icon-256x256.png?rev=2584676)
 * [Custom Block Builder - Lazy Blocks](https://wordpress.org/plugins/lazy-blocks/)
 * [Support Threads](https://wordpress.org/support/plugin/lazy-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/lazy-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazy-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazy-blocks/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [rinart73](https://wordpress.org/support/users/rinart73/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/inner-blocks-late-processing-request/#post-15802024)
 * Status: resolved