function wpjam_qiniutek_get_setting($setting_name) { $option = wpjam_get_option('wpjam-qiniutek'); return wpjam_get_setting($option, $setting_name); }
function wpjam_option_field_callback($field) { $field_name = $field['name']; $field['key'] = $field_name; $field['name'] = $field['option'] . '[' . $field_name . ']'; $wpjam_option = wpjam_get_option($field['option']); $field['value'] = isset($wpjam_option[$field_name]) ? $wpjam_option[$field_name] : ''; echo wpjam_admin_get_field_html($field); }
function weixin_robot_get_option() { $defaults = weixin_robot_get_default_option(); return wpjam_get_option('weixin-robot-basic', $defaults); }
function wpjam_get_setting($option, $setting_name) { if (is_string($option)) { $option = wpjam_get_option($option); } return isset($option[$setting_name]) ? str_replace("\r\n", "\n", $option[$setting_name]) : ''; }