Skip to main content

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

NameTypeDescription
$media_blocksarrayArray of media blocks.

Since

  • 2.0.0

Source

Defined in includes/classes/DistributorPost.php at line 1015

Returns

Modified array of media blocks.

Ready to Get Started?

Distributor is a WordPress plugin that makes it easy to syndicate and reuse content across your websites — whether in a single multisite or across the web.