Files
2025-02-27 00:04:07 +05:30

10 lines
659 B
Plaintext

---
description: Applies general rules for WordPress plugin development, including coding standards, type hinting, and language preferences.
globs: /wp-plugin/**/*.*
---
- 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.