Filter: dt_parse_media_blocks
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
Defined in includes/classes/DistributorPost.php at line 1015
Returns
Modified array of media blocks.