public function add_button($field_groups) { $field_groups = $this->maybe_add_workflow_field_group($field_groups); return parent::add_button($field_groups); }
/** * Add button. * * @see https://github.com/wp-premium/gravityforms/blob/1.9.19/form_detail.php#L2353-L2368 * @see https://github.com/wp-premium/gravityforms/blob/1.9.19/includes/fields/class-gf-field.php#L617-L652 * @return array */ public function add_button($field_groups) { // We have to make sure the custom pay field group is added, otherwise the button won't be added. $field_groups = Pronamic_WP_Pay_Extensions_GravityForms_Fields::add_pay_field_group($field_groups); return parent::add_button($field_groups); }