我找不到关于什么是插件以及如何使用插件的文档或讨论
本问答中提出了这个问题;A.Populate content on install.
是一个wp-content/install.php
重新定义可插入函数的文件wp_install_defaults
是否有插件
我的研究结果如下hakre\'s article (这似乎是互联网上所有其他副本的来源)。
File Type of Plugin Loaded Context
advanced-cache.php Advanced caching plugin. on WP_CACHE value Single
db.php Custom database class always Single
db-error.php Custom database error message on error Single
install.php Custom install script on install Single
maintenance.php Custom maintenance message on maintenance Single
object-cache.php External object cache always Single
sunrise.php Executed before Multisite is loaded on SUNRISE value Multi
blog-deleted.php Custom blog deleted message on deleted blog Multi
blog-inactive.php Custom blog inactive message on inactive blog Multi
blog-suspended.php Custom blog suspended message on archived or spammed blog Multi
Source: Data taken from global function _get_dropins() in wp-admin/includes/plugin.php.
在法典中defined as:
具体的PHP文件
起初,[wp黑客]名单上没有任何内容。并搜索;加入wordcamp“;我只有found this 相关性我的重点是:
WordPress最大的优点之一是它的插件系统。在即将发布的2.1版本中there is very little you can’t do as a drop-in plugin。这使得使用WordPress作为CMS变得很容易,并使您的定制与主代码行分离;这反过来又简化了升级和维护。