## Automatic Block Inserter

This plugin allows you to easily insert blocks into specific post areas as well as above or below specific block types.

## Hooks and Filters

Automatic block inserter comes with hooks and filters that allows developers to do necessary changes smoothly.

### ```automatic_block_inserter_supported_block_types```

This filter allows you to modify supported block types for the inserter.

#### Arguments

| Parameter | Type     | Description                |
| :-------- | :------- | :------------------------- |
| `block_types` | `string[]` | List of block types that are supported in the plugin. It loads all the registered block from server by default. |

#### Example

Here is a quick example using the filter to modify the supported block types to exclude the core image block.

```php
add_filter( 'automatic_block_inserter_supported_block_types', function( $block_types ) {

    $new_block_types = array_filter( $block_types, function( $block_type ) {
      return $block_type !== 'core/image';
    } );

    return $new_block_types;

}, 10, 3 );
```
