Gravity PDF
Yoko Core integrates with Gravity Forms + Gravity PDF through a WP-CLI command that can re-render saved PDFs for a specific entry.
Requirements
- Gravity Forms active
- Gravity PDF active
- Yoko Core active
Command
wp yoko gfpdf rerender <entry_id> [--pdf_id=<pdf_id>]
What It Does
- Loads the provided Gravity Forms entry.
- Finds Gravity PDF settings configured on that entry's form.
- Re-renders:
- all active PDFs for the form, or
- a single PDF if
--pdf_idis provided.
Parameters
<entry_id>required: Gravity Forms entry ID.--pdf_id=<pdf_id>optional: Gravity PDF setting ID (pid) for targeted re-render.
Examples
Re-render all active PDFs for entry 1234:
wp yoko gfpdf rerender 1234
Re-render only one PDF setting for entry 1234:
wp yoko gfpdf rerender 1234 --pdf_id=69de636897366
Output
The command prints:
- the target form and number of PDFs being re-rendered
- each rendered PDF setting ID
- the absolute path to each generated file
- a success/failure summary
Backward Compatibility
The old command remains available as an alias:
wp yoko gravity_pdf_rerender <entry_id> [--pdf_id=<pdf_id>]
This legacy form now displays a deprecation warning and forwards to the new command.
Local by Flywheel Usage
If you use the Yoko Core local wrapper, run the command via:
./bin/wp yoko gfpdf rerender <entry_id>
See the WP-CLI local wrapper docs for setup details.