strip_shortcodes_tagnames

过滤钩子


apply_filters( 'strip_shortcodes_tagnames', $tags_to_remove, $content )
参数
  • (array)
    $tags_to_remove
    Array of shortcode tags to remove.
    Required:
  • (string)
    $content
    Content shortcodes are being removed from.
    Required:
定义位置
  • wp-includes/shortcodes.php
    , line 649
引入
4.7.0
弃用

Filters the list of shortcode tags to remove from the content.

$tags_to_remove = apply_filters( 'strip_shortcodes_tagnames', $tags_to_remove, $content );