首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我在哪里可以找到WordPress插件的大列表?

我在哪里可以找到WordPress插件的大列表?
EN

Stack Overflow用户
提问于 2015-07-19 06:59:45
回答 2查看 64关注 0票数 4

我是一名对WordPress感兴趣的安全研究员。我已经测试了我在wordpress官方网站上找到的几个插件。我正在寻找一个很大的wordpress插件列表,有谁知道有可以下载的WordPress插件列表或数据库的站点吗?我只测试了官方网站。

EN

回答 2

Stack Overflow用户

发布于 2017-10-03 15:31:51

如果你想要更多的插件细节。只需单击此https://yendif.com/,因为该网站包含Joomla和Wordpress免费插件和Paid..its看起来像完整的包

票数 0
EN

Stack Overflow用户

发布于 2020-10-30 21:04:45

如果您正在寻找一种方法来获取WordPress.org插件目录中列出的所有插件的列表。

这是给你的一些建议:这个问题已经被问了很长时间了--但不管怎样..这是我能想出的小点子..。

不是最好的答案,但我试着用最好的方法解决我自己的问题。

您可以从以下内容开始:

https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[page]=1&request[per_page]=400

此外:我认为这是不言而喻的。

获取插件列表这不会返回所有插件,但会返回排名最高的插件:

代码语言:javascript
复制
$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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31496369

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档