This commit is contained in:
zbatte committed 2026-07-02 15:54:39 -06:00
commit 9883323161
17470 files changed
+4470592

No files matched your search

@@ -0,0 +1,30 @@
<?php
namespace Gravity_Forms\Gravity_SMTP\Data_Store;
class Const_Data_Store implements Data_Store {
public function get( $setting_name, $connector ) {
$const_name = sprintf( 'GRAVITYSMTP_%s_%s', strtoupper( $connector ), strtoupper( $setting_name ) );
if ( defined( $const_name ) ) {
return constant( $const_name );
}
return null;
}
public function save( $setting_name, $value, $connector ) {
return;
}
public function get_plugin_const( $setting_name ) {
$const_name = sprintf( 'GRAVITYSMTP_%s', strtoupper( $setting_name ) );
if ( defined( $const_name ) ) {
return constant( $const_name );
}
return null;
}
}