Created
March 2, 2020 13:09
-
-
Save nczz/f9ca74712612c4328770c2af13847cb9 to your computer and use it in GitHub Desktop.
WordPress Twenty Nineteen 主題,摘要處理
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//此行以下,放置於 wp-content/themes/twentynineteen/functions.php 最末行 (注意:建議使用子主題,此操作會在主題更新後被覆蓋) | |
function mxp_custom_excerpt_length($length) { | |
return 100; | |
} | |
add_filter('excerpt_length', 'mxp_custom_excerpt_length', 999); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment