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



wp_trim_words › WordPress Filter Hooks

Seit3.3.0
Veraltetn/v
apply_filters( 'wp_trim_words', $text, $num_words, $more, $original_text )
Parameter: (4)
  • () text The trimmed text.
    Erforderlich: Ja
  • () num_words The number of words to trim the text to. Default 55.
    Erforderlich: Ja
  • () more An optional string to append to the end of the trimmed text, e.g. ….
    Erforderlich: Ja
  • () original_text The text before it was trimmed.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the text content after words have been trimmed.





Quellcode

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