本文整理匯總了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;
}