wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_trim_words › WordPress Filter Hooks

Da3.3.0
Deprecaton/a
› apply_filters( 'wp_trim_words', $text, $num_words, $more, $original_text )
Parametri: (4)
  • () text The trimmed text.
    Richiesto: Sì
  • () num_words The number of words to trim the text to. Default 55.
    Richiesto: Sì
  • () more An optional string to append to the end of the trimmed text, e.g. ….
    Richiesto: Sì
  • () original_text The text before it was trimmed.
    Richiesto: Sì
Definito a:
Codex:

Filters the text content after words have been trimmed.





Sorgenti

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