excerpt_length

過濾鉤子
apply_filters( 'excerpt_length', $block_core_latest_posts_excerpt_length )

渲染時最新文章區塊使用的 excerpt_length 過濾器的回撥。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$excerpt_length = (int) apply_filters( 'excerpt_length', $block_core_latest_posts_excerpt_length );
$excerpt_length = (int) apply_filters( 'excerpt_length', $block_core_latest_posts_excerpt_length );
$excerpt_length = (int) apply_filters( 'excerpt_length', $block_core_latest_posts_excerpt_length );

常見問題

FAQs
檢視更多 >