twentynineteen_content_width

過濾鉤子
apply_filters( 'twentynineteen_content_width', 640 )
引數
  • (string) $link Link to single post/page.
    Required:
返回值
  • () ()
定義位置
  • wp-content/themes/twentynineteen/functions.php , line 256
相關勾子
twentysixteen_content_widthtwentyseventeen_content_widthtwenty_twenty_one_content_widthtwentynineteen_attachment_sizetwentysixteen_credits
相關方法
wp_filter_content_tagsthe_content_feedget_the_content_feedwp_increase_content_media_countfeed_content_typeget_comment_id
引入
Twenty Nineteen 2.0
棄用
-

twentynineteen_content_width: 這是一個過濾鉤子,允許開發者改變Twenty Nineteen主題中內容區域的最大寬度。

替換“[…]”(附加到自動生成的摘錄中)帶有。。。和“繼續閱讀”連結

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$GLOBALS['content_width'] = apply_filters( 'twentynineteen_content_width', 640 );
$GLOBALS['content_width'] = apply_filters( 'twentynineteen_content_width', 640 );
$GLOBALS['content_width'] = apply_filters( 'twentynineteen_content_width', 640 );

常見問題

FAQs
檢視更多 >