在表单中添加唯一字段。
Eg: <input type="hidden" name="wdm_action" value="1">
把你的
\'customer-details.php\'
以下函数中的文件代码:-
add_action(\'template_redirect\',\'wdm_customer_details\'){
//check if that field present in the form, if yes then perform the action
if(isset($_POST[\'wdm_action\'] && $_POST[\'wdm_action\'] != \'\'){
//customer-details.php file code
}
}