如何爲WP做ENABLING FUNCTION的技術支持

如何爲WP做ENABLING FUNCTION的技術支持介紹,希望對朋友們有點幫助!

  1. <?php   
  2. /* ------------------------------------- */  
  3. /* ENABLING FUNCTION SUPPORT */  
  4. /* ------------------------------------- */  
  5.   
  6. if (function_exists('add_theme_support')){   
  7.     add_theme_support( 'post-thumbnails');   
  8. }   
  9. if (function_exists('add_theme_support')) {   
  10.     add_theme_support('menus');   
  11. }   
  12. if ( function_exists('automatic-feed-links')) {   
  13.     add_theme_support( 'automatic-feed-links');   
  14. }   
  15.   
  16. remove_action ('wp_head', 'rsd_link');   
  17. remove_action ('wp_head', 'wlwmanifest_link');   
  18. remove_action ('wp_head', 'wp_generator');   
  19.   
  20. the_post_thumbnail();   
  21. the_tags();   
  22. ?>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章