function __construct() { global $icegram; parent::__construct(); if ($icegram->cache_compatibility === 'yes') { add_filter('wpcf7_form_action_url', array(&$this, 'change_form_action_url')); } }
function __construct() { global $icegram; parent::__construct(); if ($icegram->cache_compatibility === 'yes') { add_filter('gform_form_tag', 'change_form_action_url', 10, 2); function change_form_action_url($form_tag, $form) { $form_tag = preg_replace("|action='(.*?)'|", "action='" . Icegram::get_current_page_url() . "'", $form_tag); return $form_tag; } } }
function __construct() { global $icegram; parent::__construct(); }