| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/send-app/core/ |
Upload File : |
<?php
namespace Send_App\Core;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Options_Utils {
public static function get_option( string $option_name, $default = false ) {
$with_prefix = Utils::prefix_by_env( $option_name );
return \get_option( $with_prefix, $default );
}
public static function update_option( string $option_name, $new_value, $autoload = null ): bool {
$with_prefix = Utils::prefix_by_env( $option_name );
return \update_option( $with_prefix, $new_value, $autoload );
}
public static function delete_option( string $option_name ): bool {
$with_prefix = Utils::prefix_by_env( $option_name );
return \delete_option( $with_prefix );
}
}