wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_trim_words › Filtr WordPress Hooks

Od3.3.0
Przestarzałyn/a
› apply_filters( 'wp_trim_words', $text, $num_words, $more, $original_text )
Parametry: (4)
  • () text The trimmed text.
    Wymagane: Tak
  • () num_words The number of words to trim the text to. Default 55.
    Wymagane: Tak
  • () more An optional string to append to the end of the trimmed text, e.g. ….
    Wymagane: Tak
  • () original_text The text before it was trimmed.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the text content after words have been trimmed.





Źródło

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