golden hour
/var/www/html/wp-content/plugins/designthemes-webinar/modules/google-classroom
⬆️ Go Up
Upload
File/Folder
Size
Actions
assets
-
Del
OK
register-module.php
3.9 KB
Del
OK
settings
-
Del
OK
templates
-
Del
OK
utils-backend.php
1.66 KB
Del
OK
utils-common.php
2.09 KB
Del
OK
Edit: utils-backend.php
<?php // Save General Options if(!function_exists('dtwebinar_save_options_settings')) { function dtwebinar_save_options_settings() { $dtwebinar_settings_options = $_REQUEST; $settings = $dtwebinar_settings_options['settings']; $dtwebinar_settings = get_option('dtwebinar-gcr-settings'); $dtwebinar_settings[$settings] = $dtwebinar_settings_options['dtwebinar-gcr'][$settings]; if (get_option('dtwebinar-gcr-settings') != $dtwebinar_settings) { if (update_option('dtwebinar-gcr-settings', $dtwebinar_settings)) { $message = esc_html__('Options have been updated successfully!', 'dtwebinar'); } } else { $message = esc_html__('No changes done!', 'dtwebinar'); } echo json_encode(array( 'message' => $message )); wp_die(); } add_action( 'wp_ajax_dtwebinar_save_options_settings', 'dtwebinar_save_options_settings' ); add_action( 'wp_ajax_nopriv_dtwebinar_save_options_settings', 'dtwebinar_save_options_settings' ); } // Retrieve Options if(!function_exists('dtwebinar_gcr_option')) { function dtwebinar_gcr_option($key1, $key2 = '') { $options = get_option('dtwebinar-gcr-settings'); $output = ''; if (is_array ( $options ) && ! empty ( $options )) { if (array_key_exists ( $key1, $options )) { $output = $options [$key1]; if (is_array ( $output ) && ! empty ( $key2 )) { $output = (array_key_exists ( $key2, $output ) && (! empty ( $output [$key2] ))) ? $output [$key2] : ''; } } } else { $options = array (); } return $output; } } ?>
Save