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



block_core_post_excerpt_excerpt_length › WordPress Function

Since7.0.0
已弃用n/a
› block_core_post_excerpt_excerpt_length ( 没有参数 )
返回:
  • (int) The excerpt length.
定义在:
文档:

Callback for the excerpt_length filter to override the excerpt length.

If themes or plugins filter the excerpt_length, we need to override the filter in the editor, otherwise the excerpt length block setting has no effect. Returns 101 (one more than the max block setting of 100) to ensure wp_trim_words can detect when trimming is needed and add the ellipsis.


源码

function block_core_post_excerpt_excerpt_length() {
	return 101;
}