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中的特色文章。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'twentyfourteen_get_featured_posts', array() );
return apply_filters( 'twentyfourteen_get_featured_posts', array() );
return apply_filters( 'twentyfourteen_get_featured_posts', array() );

常見問題

FAQs
檢視更多 >