Description
Action that is triggered at the end of the page load for the template used for the Form Pages addon.
Parameters
This action does not accept any parameters.
More Information
This action works much like the standard WordPress wp_footer
action. It will run at the end of the page load, but specifically for the wpforms_form_pages_footer
action, it will only fire on the form page template.
This is especially useful if you have any custom JavaScript for the template used with the Form Page addon.
Source
wpforms-form-pages/src/Frontend.php
Examples
/** * Action to be called once Form Page has completely loaded * * @link https://wpforms.com/developers/wpforms_form_pages_footer/ * */ function wpf_dev_form_pages_script() { ?> //Run code <?php } add_action( 'wpforms_form_pages_footer', 'wpf_dev_form_pages_script', 30 );
Related
Snippet Reference: How to Add JavaScript to a Page When Using the Form Pages Addon