load_default_embeds

过滤钩子


apply_filters( 'load_default_embeds', true )
参数
  • (bool)
    $maybe_load_embeds
    Whether to load the embeds library. Default true.
    Required:
定义位置
  • wp-includes/embed.php
    , line 201
引入
2.9.0
弃用

Filters whether to load the default embed handlers.

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

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