key = $key; $this->settingsKey = 'fluentform_payment_settings_'.$key; add_filter('fluentform/payment_methods_global_settings', function ($methods) { $fields = $this->getGlobalFields(); if($fields) { $methods[$this->key] = $fields; } return $methods; }); add_filter('fluentform/payment_settings_' . $this->key, array($this, 'getGlobalSettings')); } abstract public function getGlobalFields(); abstract public function getGlobalSettings(); }