WP Document Revisions Cookbook
Welcome to the WP Document Revisions Cookbook! This directory contains recipes and guides for extending and integrating WP Document Revisions with other plugins and workflows.
What’s in the Cookbook?
The cookbook provides practical examples, integration guides, and code snippets that demonstrate how to:
- Extend WP Document Revisions functionality
- Integrate with third-party plugins
- Customize workflows and behavior
- Implement advanced use cases
Each recipe is self-contained and includes:
- Overview of the use case
- Step-by-step implementation instructions
- Complete, working code examples
- Configuration guidance
- Troubleshooting tips
Available Recipes
Plugin Integrations
Contributing Your Own Recipes
Have you created a useful integration or customization? We’d love to include it in the cookbook!
Recipe Guidelines
When contributing a recipe, please include:
- Clear Use Case: Explain what problem the recipe solves
- Prerequisites: List required plugins, PHP version, etc.
- Complete Code: Provide fully working, tested code
- Installation Instructions: Step-by-step setup guide
- Configuration: Any settings that need adjustment
- Usage Examples: Show how to use the integration
- Troubleshooting: Common issues and solutions
- Credits: Acknowledge contributors
Code Standards
All code in cookbook recipes should:
- Follow WordPress Coding Standards
- Include proper PHPDoc comments
- Use WordPress functions over native PHP where appropriate
- Implement proper security (sanitization, nonces, capability checks)
- Be compatible with the minimum WordPress/PHP versions supported by WPDR
Submitting a Recipe
- Fork the repository
- Create your recipe in the
docs/cookbook/ directory
- Follow the format of existing recipes
- Test your code thoroughly
- Submit a pull request with:
- Your recipe file
- Update to this README adding your recipe to the list
- Clear description of what the recipe provides
Support
For questions about cookbook recipes:
- Check the specific recipe’s troubleshooting section
- Open an issue on GitHub
- Tag your issue with “cookbook” for faster response
License
All cookbook content and code examples are provided under the GPL v3 license, consistent with WP Document Revisions.