本文整理匯總了PHP中DUP_Settings::LegacyClean方法的典型用法代碼示例。如果您正苦於以下問題:PHP DUP_Settings::LegacyClean方法的具體用法?PHP DUP_Settings::LegacyClean怎麽用?PHP DUP_Settings::LegacyClean使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DUP_Settings
的用法示例。
在下文中一共展示了DUP_Settings::LegacyClean方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: switch
//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;
}
}
?>
<style>
div#message {margin:0px 0px 10px 0px}
div#dup-server-info-area { padding:10px 5px; }
div#dup-server-info-area table { padding:1px; background:#dfdfdf; -webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px; width:100% !important; box-shadow:0 8px 6px -6px #777; }
div#dup-server-info-area td, th {padding:3px; background:#fff; -webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;}
div#dup-server-info-area tr.h img { display:none; }
div#dup-server-info-area tr.h td{ background:none; }
div#dup-server-info-area tr.h th{ text-align:center; background-color:#efefef; }
div#dup-server-info-area td.e{ font-weight:bold }