require_once plugin_dir_path(__FILE__) . 'forms_model.php'; require_once plugin_dir_path(__FILE__) . 'widget.php'; require_once plugin_dir_path(__FILE__) . 'includes/api.php'; require_once plugin_dir_path(__FILE__) . 'includes/webapi/webapi.php'; require_once plugin_dir_path(__FILE__) . 'includes/fields/class-gf-fields.php'; // GFCommon::$version is deprecated, set it to current version for backwards compatibility GFCommon::$version = GFForms::$version; add_action('init', array('RGForms', 'init')); add_action('wp', array('RGForms', 'maybe_process_form'), 9); add_action('admin_init', array('RGForms', 'maybe_process_form'), 9); add_action('wp', array('RGForms', 'process_exterior_pages')); add_filter('upgrader_pre_install', array('GFForms', 'validate_upgrade'), 10, 2); add_filter('tiny_mce_before_init', array('GFForms', 'modify_tiny_mce_4'), 20); add_filter('user_has_cap', array('RGForms', 'user_has_cap'), 10, 3); //Hooks for no-conflict functionality if (is_admin() && (RGForms::is_gravity_page() || RGForms::is_gravity_ajax_action())) { add_action('wp_print_scripts', array('RGForms', 'no_conflict_mode_script'), 1000); add_action('admin_print_footer_scripts', array('RGForms', 'no_conflict_mode_script'), 9); add_action('wp_print_styles', array('RGForms', 'no_conflict_mode_style'), 1000); add_action('admin_print_styles', array('RGForms', 'no_conflict_mode_style'), 1); add_action('admin_print_footer_scripts', array('RGForms', 'no_conflict_mode_style'), 1); add_action('admin_footer', array('RGForms', 'no_conflict_mode_style'), 1); } add_action('plugins_loaded', array('GFForms', 'loaded')); register_deactivation_hook(__FILE__, array('GFForms', 'deactivation_hook')); class GFForms { public static $version = '1.9.13.26'; public static function loaded() { /**