gform_ajax_iframe_content

The WordPress Core gform ajax iframe content hook.

Description

Parameters (1)

0. $doctype_html_html_head_meta_charset_utf_8_head_body_class_gf_ajax_postback_form_string_body_html — Optional. (string) => '' . "" . $form_string . ''
The doctype html html head meta charset utf 8 head body class gf ajax postback form string body html.

Usage

To run the hook, copy the example below.
  1. $doctype_html_html_head_meta_charset_utf_8_head_body_class_gf_ajax_postback_form_string_body_html = apply_filters( 'gform_ajax_iframe_content', $doctype_html_html_head_meta_charset_utf_8_head_body_class_gf_ajax_postback_form_string_body_html ); 
  2.  
  3. if ( !empty( $doctype_html_html_head_meta_charset_utf_8_head_body_class_gf_ajax_postback_form_string_body_html ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gform_ajax_iframe_content callback 
  2. function filter_gform_ajax_iframe_content( $doctype_html_html_head_meta_charset_utf_8_head_body_class_gf_ajax_postback_form_string_body_html ) { 
  3. // make filter magic happen here... 
  4. return $doctype_html_html_head_meta_charset_utf_8_head_body_class_gf_ajax_postback_form_string_body_html
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gform_ajax_iframe_content', 'filter_gform_ajax_iframe_content', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gform_ajax_iframe_content', 'filter_gform_ajax_iframe_content', 10, 1 ); 

Defined (3)

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

/form_display.php  
  1. $form_string = apply_filters( 
  1. $progress_confirmation = apply_filters( 'gform_ajax_iframe_content', "<!DOCTYPE html><html><head><meta charset='UTF-8' /></head><body class='GF_AJAX_POSTBACK'>" . $progress_confirmation . '</body></html>' ); 
  1. $progress_confirmation = apply_filters( 'gform_ajax_iframe_content', "<!DOCTYPE html><html><head><meta charset='UTF-8' /></head><body class='GF_AJAX_POSTBACK'>" . $confirmation_message . '</body></html>' );