
如何使用Gatsby为WordPress生成静态网站
apply_filters( 'twentyseventeen_front_page_sections', 4 )
twentyseventeen_front_page_sections: 这是一个动作钩子,允许开发者在Twenty Seventeen主题的首页上添加额外的部分。
过滤Twenty Seventeen中的首页部分的数量。
$num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 );