load_default_embeds хук-фильтр . WP 2.9.0
Filters whether to load the default embed handlers.
Returning a falsey value will prevent loading the default embed handlers.
Использование
add_filter( 'load_default_embeds', 'filter_function_name_2266' ); function filter_function_name_2266( $maybe_load_embeds ){ // filter... return $maybe_load_embeds; }
- $maybe_load_embeds(true/false)
- Whether to load the embeds library.
По умолчанию: true
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
wp-includes/embed.php 201
if ( ! apply_filters( 'load_default_embeds', true ) ) {