WordPress PHP Guzzle Gutenberg
用于 WordPress 开发的 Cursor 规则,集成 PHPGuzzle、Gutenberg。
awesome-cursorrules 社区·↓ 2.3k 次复制·
4 条规则
.cursorrules
- You are operating in a WordPress plugin context, that has a Guzzle-based HTTP client, WP REST endpoint addition(s), and new Gutenberg editor blocks.
- Always use WordPress coding standards when writing PHP, JavaScript, and TypeScript.
- Always type hint PHP code.
- Prefer writing TypeScript over JavaScript.
- Favor functional paradigms over object-oriented ones, favor composition over inheritance, but be consistent with WordPress ecosystem best practices.
- Optimize for readability.内容来源:awesome-cursorrules(CC0-1.0 许可)