是否有easy to understand scheme 决定什么类型的代码属于插件或主题的functions.php
?
那里are many cases 还有很多debates 关于这个话题,主要是因为对WordPress的内部工作有一些误解。我要求的答案是基于事实,而不是观点。
它应该解释如何处理这些问题(可能更多):
自定义帖子类型和分类add_theme_support( \'automatic-feed-links\' );
meta 元素主题切换通常有正反两面。我们最受欢迎的问题Best Collection of Code for your functions.php file 得到了很多代码片段作为答案,至少是有争议的<我们需要初学者能够理解的标准,也许是一份检查表——以及理由。
另请参见Chip Bennett在我们的元网站上提出的相关问题:Questions specifically asking for a solution "without a plugin"
相关:Where do I put the code snippets I found here or somewhere else on the web?