Filter: oEmbed

Table Of Contents
Hook
peepso_enable_oembed

 

Plugin PeepSo Foundation
Since 2.7.7
Status Active
Args
bool
string

Description #

This filterย  can be used to enable or disable oEmbed in the PeepSoEmbed class (it’s enabled by default). When oEmbed is disabled, PeepSo will not attempt to embed links via the oEmbed endpoints and instead will immediately fall back to Open Graph based discovery.

You can use peepso_enable_oembed to completely disable oEmbed discovery, or use some rules. The most common use for this would be disabling oEmbed for certain domains –ย  the $url argument is provided in that case.

Examples #

What are your feelings
Updated on September 22, 2023