Title: Enable block
Last modified: August 20, 2024

---

# Enable block

 *  [Kees Lamper](https://wordpress.org/support/users/keeslamper/)
 * (@keeslamper)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/enable-block/)
 * Hi,
 * We use this code in our function.php to disable blocks that we don’t need in 
   the editor:
   function example_allowed_block_types( $allowed_block_types, $block_editor_context){
 * $allowed_block_types = array(
   ‘core/list’,‘core/list-item’,‘core/paragraph’,‘
   generateblocks/button’,‘generateblocks/grid’,‘generateblocks/headline’,‘generateblocks/
   image’,‘generateblocks/query-loop’,
 * );
 * return $allowed_block_types;
   }add_filter( ‘allowed_block_types_all’, ‘example_allowed_block_types’,
   10, 2 );
 * /**
    - Globally disable the Block Directory.
      */remove_action( ‘enqueue_block_editor_assets’,‘
      wp_enqueue_editor_block_directory_assets’ );
 * But now the Flexible Table block is gone. Can you give me the code to show the
   Flexible Table block?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Aki Hamano](https://wordpress.org/support/users/wildworks/)
 * (@wildworks)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/enable-block/#post-17965653)
 * Hi,
 * If you use the `allowed_block_types_all` hook, you must explicitly specify which
   blocks are allowed. Add `flexible-table-block/table` to the `$allowed_block_types`
   array.

Viewing 1 replies (of 1 total)

The topic ‘Enable block’ is closed to new replies.

 * ![](https://ps.w.org/flexible-table-block/assets/icon-256x256.png?rev=2617855)
 * [Flexible Table Block](https://wordpress.org/plugins/flexible-table-block/)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-table-block/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-table-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-table-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-table-block/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Aki Hamano](https://wordpress.org/support/users/wildworks/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/enable-block/#post-17965653)
 * Status: not resolved