我是一名对WordPress感兴趣的安全研究员。我已经测试了我在wordpress官方网站上找到的几个插件。我正在寻找一个很大的wordpress插件列表,有谁知道有可以下载的WordPress插件列表或数据库的站点吗?我只测试了官方网站。
发布于 2017-10-03 15:31:51
如果你想要更多的插件细节。只需单击此https://yendif.com/,因为该网站包含Joomla和Wordpress免费插件和Paid..its看起来像完整的包
发布于 2020-10-30 21:04:45
如果您正在寻找一种方法来获取WordPress.org插件目录中列出的所有插件的列表。
这是给你的一些建议:这个问题已经被问了很长时间了--但不管怎样..这是我能想出的小点子..。
不是最好的答案,但我试着用最好的方法解决我自己的问题。
您可以从以下内容开始:
此外:我认为这是不言而喻的。
获取插件列表这不会返回所有插件,但会返回排名最高的插件:
$plugins = plugins_api('query_plugins', array(
'per_page' => 100,
'browse' => 'top-rated',
'fields' =>
array(
'short_description' => false,
'description' => false,
'sections' => false,
'tested' => false,
'requires' => false,
'rating' => false,
'ratings' => false,
'downloaded' => false,
'downloadlink' => false,
'last_updated' => false,
'added' => false,
'tags' => false,
'compatibility' => false,
'homepage' => false,
'versions' => false,
'donate_link' => false,
'reviews' => false,
'banners' => false,
'icons' => false,
'active_installs' => false,
'group' => false,
'contributors' => false
)));
Save the data as JSON
Since the data that we get is huge and it will be bad for performance, we try to get the name and the slug out of the array and then we write it in a JSON file:
$plugins_json = '{' . PHP_EOL;
// Get only the name and the slug
foreach ($plugins as $plugin) {
foreach ($plugin as $key => $p) {
if ($p->name != null) {
// Let's beautify the JSON
$plugins_json .= ' "'. $p->name . '": {' . PHP_EOL;
$plugins_json .= ' "slug": "' . $p->slug . '"' . PHP_EOL;
end($plugin);
$plugins_json .= ($key !== key($plugin)) ? ' },' . PHP_EOL : ' }' . PHP_EOL;
}
}
}
$plugins_json .= '}';
file_put_contents('plugins.json', $plugins_json);现在我们有了一个精简的JSON文件,其中只包含我们需要的数据。
为了不断更新JSON文件,我们运行该脚本,通过设置Cron Job每24小时创建一个JSON文件。
HTH
https://stackoverflow.com/questions/31496369
复制相似问题