apply_filters( ‘load_default_embeds’, bool $maybe_load_embeds )

In this article

Filters whether to load the default embed handlers.

Description

Returning a falsey value will prevent loading the default embed handlers.

Parameters

$maybe_load_embedsbool
Whether to load the embeds library. Default true.

Source

if ( ! apply_filters( 'load_default_embeds', true ) ) {

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.