ri_gfdp_js_enqueue

The Gravity Forms Data Persistence Add-On Reloaded ri gfdp js enqueue function.

Description

ri_gfdp_js_enqueue( $form, $is_ajax ); 

Parameters (2)

0. $form
The form.
1. $is_ajax
The is ajax.

Usage

  1. if ( !function_exists( 'ri_gfdp_js_enqueue' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms-data-persistence-add-on-reloaded/gravity-forms-data-persistence-add-on-reloaded.php'; 
  3.  
  4. // The form. 
  5. $form = null; 
  6.  
  7. // The is ajax. 
  8. $is_ajax = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = ri_gfdp_js_enqueue($form, $is_ajax); 
  12.  

Defined (1)

The function is defined in the following location(s).

/gravity-forms-data-persistence-add-on-reloaded.php  
  1. function ri_gfdp_js_enqueue( $form, $is_ajax ) { 
  2. if ( gfdp_is_persistent( $form ) ) { 
  3. add_action( 'wp_print_footer_scripts', 'ri_gfdp_js', 1000 );