wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_trim_words › Les Filtres WordPress

Depuis3.3.0
Dépréciéen/a
› apply_filters( 'wp_trim_words', $text, $num_words, $more, $original_text )
Paramètres: (4)
  • () text The trimmed text.
    Requis: Oui
  • () num_words The number of words to trim the text to. Default 55.
    Requis: Oui
  • () more An optional string to append to the end of the trimmed text, e.g. ….
    Requis: Oui
  • () original_text The text before it was trimmed.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the text content after words have been trimmed.





Source

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