WordPress开发者和主题制作者的搜索引擎



sanitize_title ›

Since1.2.0
已弃用n/a
apply_filters( 'sanitize_title', $title, $raw_title, $context )
参数: (3)
  • (string) $title Sanitized title.
    Required: Yes
  • (string) $raw_title The title prior to sanitization.
    Required: Yes
  • (string) $context The context for which the title is being sanitized.
    Required: Yes
定义在:
文档:

Filters a sanitized title string.





源码

$title = apply_filters( 'sanitize_title', $title, $raw_title, $context );