Is there any way to render the core/embed block in PHP by passing a URL?
-
I’m trying to render the block HTML dynamically by injecting it within a
core/query
block. The injection is working fine usingDOMDocument
, but I can’t find out how to render the embed HTML. I can usewp_oembed_get
for the iframe, but I need the wrapper DIVs, aspect ratio by provider, and so on.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Is there any way to render the core/embed block in PHP by passing a URL?’ is closed to new replies.