load_default_embeds WordPress Filter Hook

The load_default_embeds hook is used to load the default embeds for a WordPress site. This hook is called when the site is first loaded, and it allows the user to select the default embeds that they want to use on their site.

apply_filters( 'load_default_embeds', bool $maybe_load_embeds ) #

Filters whether to load the default embed handlers.


Description

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


Top ↑

Parameters

$maybe_load_embeds

(bool)Whether to load the embeds library. Default true.


Top ↑

Source

File: wp-includes/embed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.