Skip to content

Instantly share code, notes, and snippets.

@quangbahoa
Last active January 2, 2016 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save quangbahoa/8295411 to your computer and use it in GitHub Desktop.
Save quangbahoa/8295411 to your computer and use it in GitHub Desktop.
<?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