.cursorrules 0

WordPress + Gutenberg ブロック

Gutenbergブロック、Guzzle HTTPクライアント、WP REST APIを使ったWordPressプラグイン開発。

.cursorrules 13 lines
- 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.

Related Rules