Slide 44
Slide 44 text
8PSE1SFTTίΞϑΝΠϧͷ֘ͷίʔυ
function wp_trim_excerpt($text = '') {
$raw_excerpt = $text;
if ( '' == $text ) {
$text = get_the_content('');
$text = strip_shortcodes( $text );
$text = apply_filters('the_content', $text);
$text = str_replace(']]>', ']]>', $text);
$excerpt_length = apply_filters('excerpt_length', 55);
$excerpt_more = apply_filters('excerpt_more', ' ' .
'[...]');
$text = wp_trim_words( $text, $excerpt_length,
$excerpt_more );
}
return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);
}
wp-includes/formatting.phpʢൈਮʣ
44