当前位置: 首页>>代码示例>>PHP>>正文


PHP et_delete_option函数代码示例

本文整理汇总了PHP中et_delete_option函数的典型用法代码示例。如果您正苦于以下问题:PHP et_delete_option函数的具体用法?PHP et_delete_option怎么用?PHP et_delete_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了et_delete_option函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: et_aweber_remove_connection

function et_aweber_remove_connection()
{
    if (!wp_verify_nonce($_POST['et_load_nonce'], 'et_load_nonce')) {
        die(__('Nonce failed', 'Divi'));
    }
    et_delete_option('divi_aweber_consumer_key');
    et_delete_option('divi_aweber_consumer_secret');
    et_delete_option('divi_aweber_access_key');
    et_delete_option('divi_aweber_access_secret');
    die('success');
}
开发者ID:ahmedghazi,项目名称:tpls,代码行数:11,代码来源:functions.php

示例2: epanel_save_data

 function epanel_save_data($source)
 {
     global $options, $shortname;
     if (!current_user_can('switch_themes')) {
         die('-1');
     }
     // load theme settings array
     et_load_core_options();
     $epanel = basename(__FILE__);
     if (isset($_POST['action'])) {
         do_action('et_epanel_changing_options');
         if ('save_epanel' == $_POST['action']) {
             if ('ajax' != $source) {
                 check_admin_referer('epanel_nonce');
             }
             foreach ($options as $value) {
                 if (isset($value['id'])) {
                     if (isset($_POST[$value['id']])) {
                         if (in_array($value['type'], array('text', 'textlimit'))) {
                             if (isset($value['validation_type'])) {
                                 // saves the value as integer
                                 if ('number' == $value['validation_type']) {
                                     et_update_option($value['id'], intval(stripslashes($_POST[$value['id']])));
                                 }
                                 // makes sure the option is a url
                                 if ('url' == $value['validation_type']) {
                                     et_update_option($value['id'], esc_url_raw(stripslashes($_POST[$value['id']])));
                                 }
                                 /*
                                  * html is not allowed
                                  * wp_strip_all_tags can't be used here, because it returns trimmed text, some options need spaces ( e.g 'character to separate BlogName and Post title' option )
                                  */
                                 if ('nohtml' == $value['validation_type']) {
                                     et_update_option($value['id'], stripslashes(wp_filter_nohtml_kses($_POST[$value['id']])));
                                 }
                             } else {
                                 // use html allowed for posts if the validation type isn't provided
                                 et_update_option($value['id'], wp_kses_post(stripslashes($_POST[$value['id']])));
                             }
                         } elseif ('select' == $value['type']) {
                             // select boxes that list pages / categories should save page/category ID ( as integer )
                             if (isset($value['et_array_for']) && in_array($value['et_array_for'], array('pages', 'categories'))) {
                                 et_update_option($value['id'], intval(stripslashes($_POST[$value['id']])));
                             } else {
                                 // html is not allowed in select boxes
                                 et_update_option($value['id'], sanitize_text_field(stripslashes($_POST[$value['id']])));
                             }
                         } elseif (in_array($value['type'], array('checkbox', 'checkbox2'))) {
                             // saves 'on' value to the database, if the option is enabled
                             et_update_option($value['id'], 'on');
                         } elseif ('upload' == $value['type']) {
                             // makes sure the option is a url
                             et_update_option($value['id'], esc_url_raw(stripslashes($_POST[$value['id']])));
                         } elseif ('textcolorpopup' == $value['type']) {
                             // the color value
                             et_update_option($value['id'], sanitize_text_field(stripslashes($_POST[$value['id']])));
                         } elseif ('textarea' == $value['type']) {
                             if (isset($value['validation_type'])) {
                                 // html is not allowed
                                 if ('nohtml' == $value['validation_type']) {
                                     if ($value['id'] === $shortname . '_custom_css') {
                                         // don't strip slashes from custom css, it should be possible to use \ for icon fonts
                                         et_update_option($value['id'], wp_strip_all_tags($_POST[$value['id']]));
                                     } else {
                                         et_update_option($value['id'], wp_strip_all_tags(stripslashes($_POST[$value['id']])));
                                     }
                                 }
                             } else {
                                 if (current_user_can('unfiltered_html')) {
                                     et_update_option($value['id'], stripslashes($_POST[$value['id']]));
                                 } else {
                                     et_update_option($value['id'], stripslashes(wp_filter_post_kses(addslashes($_POST[$value['id']]))));
                                 }
                                 // wp_filter_post_kses() expects slashed
                             }
                         } elseif ('checkboxes' == $value['type']) {
                             // saves categories / pages IDs,
                             et_update_option($value['id'], array_map('intval', stripslashes_deep($_POST[$value['id']])));
                         } elseif ('different_checkboxes' == $value['type']) {
                             // saves 'author/date/categories/comments' options
                             et_update_option($value['id'], array_map('wp_strip_all_tags', stripslashes_deep($_POST[$value['id']])));
                         }
                     } else {
                         if (in_array($value['type'], array('checkbox', 'checkbox2'))) {
                             et_update_option($value['id'], 'false');
                         } elseif ('different_checkboxes' == $value['type']) {
                             et_update_option($value['id'], array());
                         } else {
                             et_delete_option($value['id']);
                         }
                     }
                 }
             }
             if ('js_disabled' == $source) {
                 header("Location: themes.php?page={$epanel}&saved=true");
             }
             die('1');
         } else {
             if ('reset' == $_POST['action']) {
                 check_admin_referer('et-nojs-reset_epanel', '_wpnonce_reset');
//.........这里部分代码省略.........
开发者ID:iinspiration,项目名称:theme,代码行数:101,代码来源:core_functions.php

示例3: epanel_save_data


//.........这里部分代码省略.........
                                     $et_option_new_value = stripslashes(wp_filter_nohtml_kses($_POST[$value['id']]));
                                 }
                             } else {
                                 // use html allowed for posts if the validation type isn't provided
                                 $et_option_new_value = wp_kses_post(stripslashes($_POST[$value['id']]));
                             }
                         } elseif ('select' == $value['type']) {
                             // select boxes that list pages / categories should save page/category ID ( as integer )
                             if (isset($value['et_array_for']) && in_array($value['et_array_for'], array('pages', 'categories'))) {
                                 $et_option_new_value = intval(stripslashes($_POST[$value['id']]));
                             } else {
                                 // html is not allowed in select boxes
                                 $et_option_new_value = sanitize_text_field(stripslashes($_POST[$value['id']]));
                             }
                         } elseif (in_array($value['type'], array('checkbox', 'checkbox2'))) {
                             // saves 'on' value to the database, if the option is enabled
                             $et_option_new_value = 'on';
                         } elseif ('upload' == $value['type']) {
                             // makes sure the option is a url
                             $et_option_new_value = esc_url_raw(stripslashes($_POST[$value['id']]));
                         } elseif (in_array($value['type'], array('textcolorpopup', 'et_color_palette'))) {
                             // the color value
                             $et_option_new_value = sanitize_text_field(stripslashes($_POST[$value['id']]));
                         } elseif ('textarea' == $value['type']) {
                             if (isset($value['validation_type'])) {
                                 // html is not allowed
                                 if ('nohtml' == $value['validation_type']) {
                                     if ($value['id'] === $shortname . '_custom_css') {
                                         // don't strip slashes from custom css, it should be possible to use \ for icon fonts
                                         $et_option_new_value = wp_strip_all_tags($_POST[$value['id']]);
                                     } else {
                                         $et_option_new_value = wp_strip_all_tags(stripslashes($_POST[$value['id']]));
                                     }
                                 }
                             } else {
                                 if (current_user_can('unfiltered_html')) {
                                     $et_option_new_value = stripslashes($_POST[$value['id']]);
                                 } else {
                                     $et_option_new_value = stripslashes(wp_filter_post_kses(addslashes($_POST[$value['id']])));
                                     // wp_filter_post_kses() expects slashed value
                                 }
                             }
                         } elseif ('checkboxes' == $value['type']) {
                             if ('sanitize_text_field' == $value['value_sanitize_function']) {
                                 // strings
                                 $et_option_new_value = array_map('sanitize_text_field', stripslashes_deep($_POST[$value['id']]));
                             } else {
                                 // saves categories / pages IDs
                                 $et_option_new_value = array_map('intval', stripslashes_deep($_POST[$value['id']]));
                             }
                         } elseif ('different_checkboxes' == $value['type']) {
                             // saves 'author/date/categories/comments' options
                             $et_option_new_value = array_map('intval', array_map('wp_strip_all_tags', stripslashes_deep($_POST[$value['id']])));
                         }
                     } else {
                         if (in_array($value['type'], array('checkbox', 'checkbox2'))) {
                             $et_option_new_value = 'false';
                         } else {
                             if ('different_checkboxes' == $value['type']) {
                                 $et_option_new_value = array();
                             } else {
                                 et_delete_option($value['id']);
                             }
                         }
                     }
                     if (false !== $et_option_name && false !== $et_option_new_value) {
                         $is_new_global_setting = false;
                         $global_setting_main_name = $global_setting_sub_name = '';
                         if (isset($value['is_global']) && $value['is_global']) {
                             $is_new_global_setting = true;
                             $global_setting_main_name = isset($value['main_setting_name']) ? sanitize_text_field($value['main_setting_name']) : '';
                             $global_setting_sub_name = isset($value['sub_setting_name']) ? sanitize_text_field($value['sub_setting_name']) : '';
                         }
                         et_update_option($et_option_name, $et_option_new_value, $is_new_global_setting, $global_setting_main_name, $global_setting_sub_name);
                     }
                 }
             }
             $redirect_url = add_query_arg('saved', 'true', $redirect_url);
             if ('js_disabled' == $source) {
                 header("Location: " . $redirect_url);
             }
             die('1');
         } else {
             if ('reset' == $_POST['action']) {
                 check_admin_referer('et-nojs-reset_epanel', '_wpnonce_reset');
                 foreach ($options as $value) {
                     if (isset($value['id'])) {
                         et_delete_option($value['id']);
                         if (isset($value['std'])) {
                             et_update_option($value['id'], $value['std']);
                         }
                     }
                 }
                 $redirect_url = add_query_arg('reset', 'true', $redirect_url);
                 header("Location: " . $redirect_url);
                 die('1');
             }
         }
     }
 }
开发者ID:michaeldyrynda,项目名称:SaxonHyde,代码行数:101,代码来源:core_functions.php

示例4: epanel_save_data

 function epanel_save_data($source)
 {
     global $options;
     if (!current_user_can('switch_themes')) {
         die('-1');
     }
     $epanel = basename(__FILE__);
     if (isset($_POST['action'])) {
         do_action('et_epanel_changing_options');
         if ('save_epanel' == $_POST['action']) {
             if ('ajax' != $source) {
                 check_admin_referer('epanel_nonce');
             }
             foreach ($options as $value) {
                 if (isset($value['id'])) {
                     if (isset($_POST[$value['id']])) {
                         if (in_array($value['type'], array('text', 'textlimit', 'select', 'textcolorpopup', 'checkbox', 'checkbox2'))) {
                             et_update_option($value['id'], stripslashes(wp_kses_post($_POST[$value['id']])));
                         } elseif ('upload' == $value['type']) {
                             et_update_option($value['id'], stripslashes(esc_url_raw($_POST[$value['id']])));
                         } elseif ('textarea' == $value['type']) {
                             et_update_option($value['id'], stripslashes($_POST[$value['id']]));
                         } elseif (in_array($value['type'], array('checkboxes', 'different_checkboxes'))) {
                             et_update_option($value['id'], stripslashes_deep(array_map('wp_kses_post', $_POST[$value['id']])));
                         }
                     } else {
                         if (in_array($value['type'], array('checkbox', 'checkbox2'))) {
                             et_update_option($value['id'], 'false');
                         } elseif ('different_checkboxes' == $value['type']) {
                             et_update_option($value['id'], array());
                         } else {
                             et_delete_option($value['id']);
                         }
                     }
                 }
             }
             if ('js_disabled' == $source) {
                 header("Location: themes.php?page={$epanel}&saved=true");
             }
             die('1');
         } else {
             if ('reset' == $_POST['action']) {
                 check_admin_referer('et-nojs-reset_epanel', '_wpnonce_reset');
                 foreach ($options as $value) {
                     if (isset($value['id'])) {
                         et_delete_option($value['id']);
                         if (isset($value['std'])) {
                             et_update_option($value['id'], $value['std']);
                         }
                     }
                 }
                 header("Location: themes.php?page={$epanel}&reset=true");
                 die('1');
             }
         }
     }
 }
开发者ID:dfc643,项目名称:ARCHIVE-2014-wordpress-theme-backup,代码行数:57,代码来源:core_functions.php

示例5: et_reset_memory_limit_increase

 function et_reset_memory_limit_increase()
 {
     if (!isset($_POST['et_builder_reset_memory_limit_nonce']) || !wp_verify_nonce($_POST['et_builder_reset_memory_limit_nonce'], 'et_builder_reset_memory_limit_nonce')) {
         die(-1);
     }
     if (!current_user_can('manage_options')) {
         die(-1);
     }
     if (et_get_option('set_memory_limit')) {
         et_delete_option('set_memory_limit');
     }
     die('success');
 }
开发者ID:pacificano,项目名称:pacificano,代码行数:13,代码来源:core.php

示例6: et_pb_add_builder_page_js_css

 function et_pb_add_builder_page_js_css()
 {
     global $typenow, $post;
     if (et_is_yoast_seo_plugin_active()) {
         // save the original content of $post variable
         $post_original = $post;
         // get the content for yoast
         $post_content_processed = do_shortcode($post->post_content);
         // set the $post to the original content to make sure it wasn't changed by do_shortcode()
         $post = $post_original;
     }
     // we need some post data when editing saved templates.
     if ('et_pb_layout' === $typenow) {
         $template_scope = wp_get_object_terms(get_the_ID(), 'scope');
         $is_global_template = !empty($template_scope[0]) ? $template_scope[0]->slug : 'regular';
         $post_id = get_the_ID();
         // Check whether it's a Global item's page and display wp error if Global items disabled for current user
         if (!et_pb_is_allowed('edit_global_library') && 'global' === $is_global_template) {
             wp_die(esc_html__("you don't have sufficient permissions to access this page", 'et_builder'));
         }
         $built_for_post_type = get_post_meta(get_the_ID(), '_et_pb_built_for_post_type', true);
         $built_for_post_type = '' !== $built_for_post_type ? $built_for_post_type : 'page';
         $post_type = apply_filters('et_pb_built_for_post_type', $built_for_post_type, get_the_ID());
     } else {
         $is_global_template = '';
         $post_id = '';
         $post_type = $typenow;
     }
     // we need this data to create the filter when adding saved modules
     $layout_categories = get_terms('layout_category');
     $layout_cat_data = array();
     $layout_cat_data_json = '';
     if (is_array($layout_categories) && !empty($layout_categories)) {
         foreach ($layout_categories as $category) {
             $layout_cat_data[] = array('slug' => $category->slug, 'name' => $category->name);
         }
     }
     if (!empty($layout_cat_data)) {
         $layout_cat_data_json = json_encode($layout_cat_data);
     }
     // Set fixed protocol for preview URL to prevent cross origin issue
     $preview_scheme = is_ssl() ? 'https' : 'http';
     $preview_url = esc_url(home_url('/'));
     if ('https' === $preview_scheme && !strpos($preview_url, 'https://')) {
         $preview_url = str_replace('http://', 'https://', $preview_url);
     }
     // force update cache if need to regenerate MailChimp or AWeber Lists or if et_pb_clear_templates_cache option is set to on
     if ('on' === et_get_option('divi_regenerate_mailchimp_lists', 'false') || 'on' === et_get_option('divi_regenerate_aweber_lists', 'false') || 'on' === et_get_option('et_pb_clear_templates_cache', 'off')) {
         $force_cache_value = true;
     } else {
         $force_cache_value = false;
     }
     $force_cache_update = false !== $force_cache_value ? $force_cache_value : ET_BUILDER_FORCE_CACHE_PURGE;
     // delete et_pb_clear_templates_cache option it's not needed anymore
     et_delete_option('et_pb_clear_templates_cache');
     wp_enqueue_script('jquery-ui-core');
     wp_enqueue_script('underscore');
     wp_enqueue_script('backbone');
     wp_enqueue_script('google-maps-api', esc_url(add_query_arg(array('v' => 3, 'sensor' => 'false'), is_ssl() ? 'https://maps-api-ssl.google.com/maps/api/js' : 'http://maps.google.com/maps/api/js')), array(), '3', true);
     wp_enqueue_script('wp-color-picker');
     wp_enqueue_style('wp-color-picker');
     wp_enqueue_script('wp-color-picker-alpha', ET_BUILDER_URI . '/scripts/ext/wp-color-picker-alpha.min.js', array('jquery', 'wp-color-picker'), ET_BUILDER_VERSION, true);
     wp_enqueue_script('et_pb_admin_date_js', ET_BUILDER_URI . '/scripts/ext/jquery-ui-1.10.4.custom.min.js', array('jquery'), ET_BUILDER_VERSION, true);
     wp_enqueue_script('et_pb_admin_date_addon_js', ET_BUILDER_URI . '/scripts/ext/jquery-ui-timepicker-addon.js', array('et_pb_admin_date_js'), ET_BUILDER_VERSION, true);
     wp_enqueue_script('validation', ET_BUILDER_URI . '/scripts/ext/jquery.validate.js', array('jquery'), ET_BUILDER_VERSION, true);
     wp_enqueue_script('minicolors', ET_BUILDER_URI . '/scripts/ext/jquery.minicolors.js', array('jquery'), ET_BUILDER_VERSION, true);
     wp_enqueue_script('et_pb_admin_js', ET_BUILDER_URI . '/scripts/builder.js', array('jquery', 'jquery-ui-core', 'underscore', 'backbone'), ET_BUILDER_VERSION, true);
     wp_localize_script('et_pb_admin_js', 'et_pb_options', apply_filters('et_pb_options_builder', array('debug' => true, 'ajaxurl' => admin_url('admin-ajax.php'), 'home_url' => home_url(), 'preview_url' => add_query_arg('et_pb_preview', 'true', $preview_url), 'et_admin_load_nonce' => wp_create_nonce('et_admin_load_nonce'), 'images_uri' => ET_BUILDER_URI . '/images', 'post_type' => $post_type, 'et_builder_module_parent_shortcodes' => ET_Builder_Element::get_parent_shortcodes($post_type), 'et_builder_module_child_shortcodes' => ET_Builder_Element::get_child_shortcodes($post_type), 'et_builder_module_raw_content_shortcodes' => ET_Builder_Element::get_raw_content_shortcodes($post_type), 'et_builder_modules' => ET_Builder_Element::get_modules_js_array($post_type), 'et_builder_modules_count' => ET_Builder_Element::get_modules_count($post_type), 'et_builder_modules_with_children' => ET_Builder_Element::get_shortcodes_with_children($post_type), 'et_builder_templates_amount' => ET_BUILDER_AJAX_TEMPLATES_AMOUNT, 'default_initial_column_type' => apply_filters('et_builder_default_initial_column_type', '4_4'), 'default_initial_text_module' => apply_filters('et_builder_default_initial_text_module', 'et_pb_text'), 'section_only_row_dragged_away' => esc_html__('The section should have at least one row.', 'et_builder'), 'fullwidth_module_dragged_away' => esc_html__('Fullwidth module can\'t be used outside of the Fullwidth Section.', 'et_builder'), 'stop_dropping_3_col_row' => esc_html__('3 column row can\'t be used in this column.', 'et_builder'), 'preview_image' => esc_html__('Preview', 'et_builder'), 'empty_admin_label' => esc_html__('Module', 'et_builder'), 'video_module_image_error' => esc_html__('Still images cannot be generated from this video service and/or this video format', 'et_builder'), 'geocode_error' => esc_html__('Geocode was not successful for the following reason', 'et_builder'), 'geocode_error_2' => esc_html__('Geocoder failed due to', 'et_builder'), 'no_results' => esc_html__('No results found', 'et_builder'), 'all_tab_options_hidden' => esc_html__('No available options for this configuration.', 'et_builder'), 'update_global_module' => esc_html__('You\'re about to update global module. This change will be applied to all pages where you use this module. Press OK if you want to update this module', 'et_builder'), 'global_row_alert' => esc_html__('You cannot add global rows into global sections', 'et_builder'), 'global_module_alert' => esc_html__('You cannot add global modules into global sections or rows', 'et_builder'), 'all_cat_text' => esc_html__('All Categories', 'et_builder'), 'is_global_template' => $is_global_template, 'template_post_id' => $post_id, 'layout_categories' => $layout_cat_data_json, 'map_pin_address_error' => esc_html__('Map Pin Address cannot be empty', 'et_builder'), 'map_pin_address_invalid' => esc_html__('Invalid Pin and address data. Please try again.', 'et_builder'), 'locked_section_permission_alert' => esc_html__('You do not have permission to unlock this section.', 'et_builder'), 'locked_row_permission_alert' => esc_html__('You do not have permission to unlock this row.', 'et_builder'), 'locked_module_permission_alert' => esc_html__('You do not have permission to unlock this module.', 'et_builder'), 'locked_item_permission_alert' => esc_html__('You do not have permission to perform this task.', 'et_builder'), 'localstorage_unavailability_alert' => esc_html__('Unable to perform copy/paste process due to inavailability of localStorage feature in your browser. Please use latest modern browser (Chrome, Firefox, or Safari) to perform copy/paste process', 'et_builder'), 'verb' => array('did' => esc_html__('Did', 'et_builder'), 'added' => esc_html__('Added', 'et_builder'), 'edited' => esc_html__('Edited', 'et_builder'), 'removed' => esc_html__('Removed', 'et_builder'), 'moved' => esc_html__('Moved', 'et_builder'), 'expanded' => esc_html__('Expanded', 'et_builder'), 'collapsed' => esc_html__('Collapsed', 'et_builder'), 'locked' => esc_html__('Locked', 'et_builder'), 'unlocked' => esc_html__('Unlocked', 'et_builder'), 'cloned' => esc_html__('Cloned', 'et_builder'), 'cleared' => esc_html__('Cleared', 'et_builder'), 'enabled' => esc_html__('Enabled', 'et_builder'), 'disabled' => esc_html__('Disabled', 'et_builder'), 'copied' => esc_html__('Copied', 'et_builder'), 'renamed' => esc_html__('Renamed', 'et_builder'), 'loaded' => esc_html__('Loaded', 'et_builder')), 'noun' => array('section' => esc_html__('Section', 'et_builder'), 'saved_section' => esc_html__('Saved Section', 'et_builder'), 'fullwidth_section' => esc_html__('Fullwidth Section', 'et_builder'), 'specialty_section' => esc_html__('Specialty Section', 'et_builder'), 'column' => esc_html__('Column', 'et_builder'), 'row' => esc_html__('Row', 'et_builder'), 'saved_row' => esc_html__('Saved Row', 'et_builder'), 'module' => esc_html__('Module', 'et_builder'), 'saved_module' => esc_html__('Saved Module', 'et_builder'), 'page' => esc_html__('Page', 'et_builder'), 'layout' => esc_html__('Layout', 'et_builder')), 'addition' => array('phone' => esc_html__('on Phone', 'et_builder'), 'tablet' => esc_html__('on Tablet', 'et_builder'), 'desktop' => esc_html__('on Desktop', 'et_builder')), 'invalid_color' => esc_html__('Invalid Color', 'et_builder'), 'et_pb_preview_nonce' => wp_create_nonce('et_pb_preview_nonce'), 'is_divi_library' => 'et_pb_layout' === $typenow ? 1 : 0, 'layout_type' => 'et_pb_layout' === $typenow ? et_pb_get_layout_type(get_the_ID()) : 0, 'is_plugin_used' => et_is_builder_plugin_active(), 'yoast_content' => et_is_yoast_seo_plugin_active() ? $post_content_processed : '', 'product_version' => ET_BUILDER_VERSION, 'force_cache_purge' => (int) $force_cache_update)));
     wp_enqueue_style('et_pb_admin_css', ET_BUILDER_URI . '/styles/style.css', array(), ET_BUILDER_VERSION);
     wp_enqueue_style('et_pb_admin_date_css', ET_BUILDER_URI . '/styles/jquery-ui-1.10.4.custom.css', array(), ET_BUILDER_VERSION);
 }
开发者ID:Rehabescapi,项目名称:GVSU-Senior-Project-Hola,代码行数:71,代码来源:functions.php

示例7: et_aweber_remove_connection

function et_aweber_remove_connection()
{
    if (!wp_verify_nonce($_POST['et_admin_load_nonce'], 'et_admin_load_nonce')) {
        die(esc_html__('Nonce failed', 'et_builder'));
    }
    if (!current_user_can('manage_options')) {
        die(-1);
    }
    et_delete_option('divi_aweber_consumer_key');
    et_delete_option('divi_aweber_consumer_secret');
    et_delete_option('divi_aweber_access_key');
    et_delete_option('divi_aweber_access_secret');
    die('success');
}
开发者ID:Rehabescapi,项目名称:GVSU-Senior-Project-Hola,代码行数:14,代码来源:core.php


注:本文中的et_delete_option函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。