apply_filters( 'dt_parse_media_blocks', $media_blocks ) → {array}
Filters blocks to consider as media.
The array keys are the block names and the values indicate the attribute containing the media's attachment ID.
The Distributor defaults are { 'core/image' => 'id', 'core/audio' => 'id', 'core/video' => 'id', }
Parameters:
Name | Type | Description |
---|---|---|
$media_blocks |
array | Array of media blocks. |
- Since:
- 2.0.0
- Source:
Returns:
Modified array of media blocks.
- Type
- array