| @@ -45,17 +45,14 @@ | ||
| 45 | 45 | * @return mixed |
| 46 | 46 | */ |
| 47 | 47 | public function get( $key ) { |
| 48 | 48 | $settings = $this->all(); |
| 49 | - $value = isset( $settings[ $key ] ) ? $settings[ $key ] : false; | |
| 50 | 49 | |
| 51 | - /** | |
| 52 | - * Filter a setting value. Allows overriding from env vars or other sources. | |
| 53 | - * | |
| 54 | - * @param mixed $value The setting value | |
| 55 | - * @param string $key The setting key | |
| 56 | - */ | |
| 57 | - return apply_filters( 'texty_setting', $value, $key ); | |
| 50 | + if ( isset( $settings[ $key ] ) ) { | |
| 51 | + return $settings[ $key ]; | |
| 52 | + } | |
| 53 | + | |
| 54 | + return false; | |
| 58 | 55 | } |
| 59 | 56 | |
| 60 | 57 | /** |
| 61 | 58 | * Get the active gateway name |
| @@ -62,14 +59,7 @@ | ||
| 62 | 59 | * |
| 63 | 60 | * @return string|false |
| 64 | 61 | */ |
| 65 | 62 | public function gateway() { |
| 66 | - $gateway = $this->get( 'gateway' ); | |
| 67 | - | |
| 68 | - /** | |
| 69 | - * Filter the active gateway name. | |
| 70 | - * | |
| 71 | - * @param string|false $gateway The active gateway identifier | |
| 72 | - */ | |
| 73 | - return apply_filters( 'texty_active_gateway_name', $gateway ); | |
| 63 | + return $this->get( 'gateway' ); | |
| 74 | 64 | } |
| 75 | 65 | } |