Thanks for helping improve WP Content Extractor!
Please read and follow our CODE_OF_CONDUCT.md.
# Clone
git clone https://github.com/VoxHash/WPContent-extractor.git
cd WPContent-extractor
# Set up WordPress development environment
# Install WordPress locally or use a Docker setup
# Copy plugin to wp-content/plugins/wp-content-extractor
# Run PHP linting
php -l content-extractor.php
php -l functions.php- Branches:
feature/…,fix/…,docs/…,chore/… - Conventional Commits:
feat:,fix:,docs:,refactor:,test:,chore:
Examples:
feat: add support for custom post typesfix: resolve undefined variable in extraction functiondocs: update installation instructions
- Link related issues
- Add tests if applicable
- Update documentation
- Follow the PR template
- Keep diffs focused and atomic
- Ensure PHP syntax is valid (
php -l)
- Follow WordPress Coding Standards
- Use WordPress functions for security (e.g.,
wp_remote_get(),esc_url_raw(),sanitize_text_field()) - Add error handling for all external operations
- Document complex functions with PHPDoc comments
- Use meaningful variable and function names
Before submitting a PR:
- Test the plugin activation/deactivation
- Verify cron scheduling works correctly
- Test content extraction with a sample URL
- Check error handling with invalid URLs
- Verify settings page functionality
- Semantic Versioning (MAJOR.MINOR.PATCH)
- Update CHANGELOG.md with changes
- Tag releases with version number
- Update plugin header version in main file