Advertisement
Guest User

Untitled

a guest
Jul 10th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. //1. replace line 39 with
  2. add_filter('gform_get_form_filter', array($this, 'output_message') );
  3.  
  4. //2. And add a new function inside the class:
  5. function output_message() {
  6.         $GWpage = get_page_by_title( 'The Page Title' );
  7.         $GWpost = get_post($GWpage->ID);
  8.         $GWcontent = $GWpost->post_content;
  9.         return apply_filters('the_content', $GWcontent);
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement