On this page
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.
Parameters
$maybe_load_embedsbool-
Whether to load the embeds library. Default true.
Source
File: wp-includes/embed.php. View all references
if ( ! apply_filters( 'load_default_embeds', true ) ) {
Related
Used By
| Used By | Description |
|---|---|
| wp_maybe_load_embeds() wp-includes/embed.php | Determines if default embed handlers should be loaded. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/load_default_embeds