Add gated content downloads, requiring users to complete a Gravity Form to trigger downloads. Displays a download button that opens a modal form required for completing the download. A "Download" post type is included with the plugin, with a file field for selecting PDFs or other gated content downloads.
- Upload the plugin directory to the wp-content/plugins/ directory
- Activate the plugin through the Plugins menu in WordPress
- Clone the repository to your site plugins directory
- Run
composer install
- Activate the plugin through the Plugins menu in WordPress
- Add or choose an existing required Gravity Form for users to complete. Downloads can be configured to use any existing form, so different downloads may have different required forms.
- Optionally, add a field to the form to store the download that the user is requesting.
- Add a download post, and add a file from your media library using the included file custom field.
- To add a download button, insert the shortcode manually, or use the "Add Download" button above the content editor to configure a shortcode.
- Post Type Arguments:
gfpd_posttype_args($args)
Customize the Download post type labels and arguments. See the WordPress documentation for more information, or view the arguments underapp/WPData/RegisterPostTypes.php
- Media Button Text:
gfpd_media_button_text($text)
Customize the text in the media button above the WordPress content editor. - Shortcode Builder Modal Header Text:
gfpd_media_button_modal_text($text)
Customize the modal window title in the shortcode builder (accessed by clicking the media button)