删除并更改checkout_form_shipping操作挂钩

问题描述

我正在设计结帐页面,我需要从 woocommerce_checkout_billing 删除 checkout_form_shipping(),并将其添加 woocommerce_checkout_shipping

enter image description here

我很累:

@Override public boolean onoptionsItemSelected(@NonNull MenuItem item) { switch (item.getItemId()) { //Get the night mode state of the app int nightMode = AppCompatDelegate.getDefaultNightMode(); case R.id.nav_prevIoUs: onBackpressed(); break; case R.id.nav_next: if (webView.canGoForward()) { webView.goForward(); } break; case R.id.nav_reload: checkConnecttion(); break; case R.id.moon: AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES); break; case R.id.sun: AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO); break; } // Recreate the activity for the theme change to take effect. recreate(); return super.onoptionsItemSelected(item); }

但不起作用。

但这是可行的:

remove_action( 'woocommerce_checkout_billing',array( new WC_Checkout,'checkout_form_shipping' ),10 );

任何帮助都会给人以帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)