From 5e92999bd28af56e4dd1d19e023139a0aebc8137 Mon Sep 17 00:00:00 2001 From: ruben Date: Fri, 7 Mar 2025 01:51:13 -0600 Subject: [PATCH] Added CLAUDE.md file --- CLAUDE.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..0d61aad --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,19 @@ +# RL MailWarmer WordPress Plugin Guide + +## Build/Test Commands +- **Run PHPUnit Tests**: `vendor/bin/phpunit tests` +- **Run Single Test**: `vendor/bin/phpunit tests/TestName.php` +- **Composer Update**: `composer update` +- **Composer Install**: `composer install` + +## Code Style Guidelines +- **Class Naming**: Use `RL_MailWarmer_ClassName` format with underscores +- **Method Naming**: Use snake_case for method names +- **File Naming**: Use `class-rl-mailwarmer-name.php` for class files +- **Database**: Use `rl_mailwarmer_` prefix for all tables +- **Error Handling**: Use WP_Error for WordPress-specific errors, Exceptions for PHP-level errors +- **Validation**: Always validate and sanitize inputs using WordPress functions +- **Documentation**: Use PHPDoc blocks for classes and methods +- **Security**: Follow WordPress security best practices (prepare SQL, validate nonces) +- **Imports**: Place includes at the top, use require_once for class dependencies +- **Type Hints**: Use PHP type hints for method parameters and return types \ No newline at end of file