wp_trim_words Wordpress function


Description:

Trims text to a certain number of words.


Syntax:


Arguments:

(string) $text Text to trim.
(int) $num_words Number of words. Default 55.
(string) $more What to append if $text needs to be trimmed. Default '…'.


Return Type:

(string) Trimmed text.


Define At:

wp-includes/formatting.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/wp_trim_words


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×