twentyfourteen_get_featured_posts

过滤钩子
apply_filters( 'twentyfourteen_get_featured_posts', array()
参数
  • (array|bool) $posts Array of featured posts, otherwise false.
    Required:
定义位置
  • wp-content/themes/twentyfourteen/functions.php , line 237
相关勾子
twentyfourteen_featured_posts_aftertwentyfourteen_featured_posts_beforetwentyfourteen_creditstwentyfifteen_creditstwentythirteen_credits
相关方法
wp_get_recent_posts_load_remote_featured_patternscount_user_postscount_many_users_postsget_theme_feature_listinstall_themes_feature_list
引入
Twenty Fourteen 1.0
弃用
-

twentyfourteen_get_featured_posts: 这是一个自定义函数,用于检索Twenty Fourteen主题的特色文章。它用于在主题的首页显示特色文章。

筛选出 Twenty Fourteen中的特色文章。

return apply_filters( 'twentyfourteen_get_featured_posts', array() );

常见问题

FAQs
查看更多 >