wp_trim_words

wp_trim_words

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_trim_words') is found 1 times:

  • /wp-includes/formatting.php line 4068
    	 * @param int    $num_words     The number of words to trim the text to. Default 55.
    	 * @param string $more          An optional string to append to the end of the trimmed text, e.g. ….
    	 * @param string $original_text The text before it was trimmed.
    	 */
    	return apply_filters( 'wp_trim_words', $text, $num_words, $more, $original_text );
    }
    
    /**
     * Converts named entities into numbered entities.
     *
     * @since 1.5.1
    

See this hook used in plugins: