Description
Connect WordPress and WooCommerce to DocuHook (https://docuhook.com) to merge order JSON into HTML invoice templates and produce PDFs.
- Settings: API URL and API key
docuhook_render( $data, $html, $args )helper for themes and plugins- WooCommerce order.completed invoice examples in this repo
- Admin test render button
- Sync or async (job) mode
Get an API key at https://docuhook.com/register
GitHub: https://github.com/rustemas/docuhook-woocommerce
External services
This plugin connects to the DocuHook API (https://docuhook.com) to merge JSON data into an HTML template and return a rendered document (HTML/PDF). That connection is required for the plugin to work; PDF generation does not run on your WordPress server.
When you (or your theme/plugin code) call a render, or when you use the admin “Send test render” action, the plugin sends an authenticated HTTPS request to your configured API URL (default: https://docuhook.com). The request includes:
- Your DocuHook API key (Authorization header)
- The JSON
datayou supply (for example order fields you choose to send) - The HTML template string you supply
- Optional filename and sync/async mode
In async mode, the plugin may also request job status and result endpoints for the same job.
No data is sent until you configure an API key and a render is triggered. DocuHook is operated by RG Dev Studio.
- Terms of Service: https://docuhook.com/terms
- Privacy Policy: https://docuhook.com/privacy
Installation
- Upload the
docuhookfolder to/wp-content/plugins/or install from the zip - Activate the DocuHook plugin
- Go to Settings DocuHook and paste your API URL and API key
- Click Send test render
FAQ
-
Do I need a DocuHook account?
-
Yes. Register at https://docuhook.com/register and create an API key under Account.
-
Does this generate PDF files inside WordPress?
-
The plugin calls the DocuHook API, which merges your JSON and HTML template. Use the returned HTML or your DocuHook plan features for PDF delivery.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“DocuHook” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “DocuHook” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.1
- Document external DocuHook API use (terms and privacy links)
- Set WordPress.org Contributors to plugin owner username
1.0.0
- Initial release
