TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

WordPress Plugin Development: Talking to APIs

49 点作者 jdemler大约 7 年前

2 条评论

news_to_me大约 7 年前
This is a really useful and informative writeup.<p>However, to me it just highlights a lot of things that Wordpress&#x2F;PHP is bad at. For one, no mention of testing here (or really hardly anywhere in PHP-land), although keeping the API logic in a separate class is a good idea.<p>Also, the flexibility&#x2F;ease of use tradeoff going from wp_remote_get and friends is terrible. It&#x27;s so frustrating that PHP doesn&#x27;t have a better general networking solution than &quot;idk, just fork to curl&quot;. The Guzzle library helps a lot here, but I don&#x27;t see a lot of the PHP&#x2F;WP community embracing it much.<p>With the current plethora of widely-supported Web development frameworks, I really don&#x27;t see any reason to use PHP or Wordpress for new projects.
评论 #16622220 未加载
评论 #16625215 未加载
评论 #16624899 未加载
评论 #16624599 未加载
评论 #16625990 未加载
评论 #16625555 未加载
评论 #16623753 未加载
评论 #16625740 未加载
评论 #16622657 未加载
poxrud大约 7 年前
With the upcoming gutenberg editor release there will be a lot of changes to the way plugins are written. Expect to see a lot of server side code to be moved to client side (where possible) with react.