/** * GravityView_Field constructor. */ public function __construct() { // Modify the field options based on the name of the field type add_filter(sprintf('gravityview_template_%s_options', $this->name), array(&$this, 'field_options'), 10, 5); add_filter('gravityview/sortable/field_blacklist', array($this, '_filter_sortable_fields'), 1); if ($this->_custom_merge_tag) { add_filter('gform_custom_merge_tags', array($this, '_filter_gform_custom_merge_tags'), 10, 4); add_filter('gform_replace_merge_tags', array($this, '_filter_gform_replace_merge_tags'), 10, 7); } GravityView_Fields::register($this); }