wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



block_core_post_excerpt_excerpt_length › WordPress Function

Seit7.0.0
Veraltetn/v
block_core_post_excerpt_excerpt_length ( Keine Parameter )
Gibt zurück:
  • (int) The excerpt length.
Definiert in:
Codex:

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.


Quellcode

function block_core_post_excerpt_excerpt_length() {
	return 101;
}