get_setting( 'enable_for_virtual', true ), FILTER_VALIDATE_BOOLEAN ); } /** * Return enable_for_methods option. * * @return array Array of shipping methods (string ids) that allow this payment method. (If empty, all support it.) */ private function get_enable_for_methods() { $enable_for_methods = $this->get_setting( 'enable_for_methods', [] ); if ( ! is_array( $enable_for_methods ) ) { return []; } return $enable_for_methods; } }