Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php $trimmed = wp_trim_words( $text, $num_words = 55, $more = null ); ?>
/*** Mô tả *************
$text
(string) (required) Text to trim
Default: None
$num_words
(integer) (optional) Number of words
Default: 55
$more
(string) (optional) What to append if $text needs to be trimmed.
Default: '&hellip;'
Hết mô tả ***/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment