wordpress add_theme_support()函数说明
【函数介绍】 add_theme_support()用于在我们的当前使用的主题添加一些特殊的功能,函数一般写在主题的functions.php文件中,当然也可以再插件中使用钩子来调用该函数,如果是挂在钩子上,那他必须挂在”after_setup_theme”钩子上。 【函数使用】 【函数参数】 $feature (string) (必须) 需要添加特殊功能名称,可以是以下参数: ‘post-thumbnails’ —– 增加缩略图支持 ‘automatic-feed-links’ 自动输出RSS ‘post-formats’—– 增加文章格式功能 ‘custom-background’—–
下载地址
用户评论