本文整理汇总了PHP中DUP_Settings::DeleteWPOption方法的典型用法代码示例。如果您正苦于以下问题:PHP DUP_Settings::DeleteWPOption方法的具体用法?PHP DUP_Settings::DeleteWPOption怎么用?PHP DUP_Settings::DeleteWPOption使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DUP_Settings
的用法示例。
在下文中一共展示了DUP_Settings::DeleteWPOption方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: is_null
$dbvar_maxtime = DUP_Util::MysqlVariableValue('wait_timeout');
$dbvar_maxpacks = DUP_Util::MysqlVariableValue('max_allowed_packet');
$dbvar_maxtime = is_null($dbvar_maxtime) ? __("unknow", 'wpduplicator') : $dbvar_maxtime;
$dbvar_maxpacks = is_null($dbvar_maxpacks) ? __("unknow", 'wpduplicator') : $dbvar_maxpacks;
$space = @disk_total_space(DUPLICATOR_WPROOTPATH);
$space_free = @disk_free_space(DUPLICATOR_WPROOTPATH);
$perc = @round(100 / $space * $space_free, 2);
$mysqldumpPath = DUP_Database::GetMySqlDumpPath();
$mysqlDumpSupport = $mysqldumpPath ? $mysqldumpPath : 'Path Not Found';
$view_state = DUP_UI::GetViewStateArray();
$ui_css_srv_panel = isset($view_state['dup-settings-diag-srv-panel']) && $view_state['dup-settings-diag-srv-panel'] ? 'display:block' : 'display:none';
$ui_css_opts_panel = isset($view_state['dup-settings-diag-opts-panel']) && $view_state['dup-settings-diag-opts-panel'] ? 'display:block' : 'display:none';
//POST BACK
$action_updated = null;
if (isset($_POST['action'])) {
$action_result = DUP_Settings::DeleteWPOption($_POST['action']);
switch ($_POST['action']) {
case 'duplicator_settings':
$action_response = __('Plugin settings reset.', 'wpduplicator');
break;
case 'duplicator_ui_view_state':
$action_response = __('View state settings reset.', 'wpduplicator');
break;
case 'duplicator_package_active':
$action_response = __('Active package settings reset.', 'wpduplicator');
break;
case 'clear_legacy_data':
DUP_Settings::LegacyClean();
$action_response = __('Legacy data removed.', 'wpduplicator');
break;
}