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



wp_trim_words › WordPress过滤钩子

Since3.3.0
已弃用n/a
› apply_filters( 'wp_trim_words', $text, $num_words, $more, $original_text )
参数: (4)
  • () text The trimmed text.
    Required: Yes
  • () num_words The number of words to trim the text to. Default 55.
    Required: Yes
  • () more An optional string to append to the end of the trimmed text, e.g. ….
    Required: Yes
  • () original_text The text before it was trimmed.
    Required: Yes
定义在:
文档:

Filters the text content after words have been trimmed.





源码

return apply_filters( 'wp_trim_words', $text, $num_words, $more, $original_text );