在Woocommerce管理产品选项卡中,当用户添加新产品时,我希望产品选项卡反映自定义布局。
现在我有了产品退出时的工作代码,但我希望这也反映用户单击添加新产品的时间(您知道产品插入数据库之前的屏幕吗?)
这就是我正在测试的工作代码
function Reboot_remove_linked_products($tabs){
global $post;
$Product_is_what_Im_looking_for=false;
if ( is_product() && has_term( 'Forensic Evidence',
我搜索如何在woocommerce中为可访问的产品添加自定义字段。我已经这样做了,但只为简单的产品工作。
add_action( 'woocommerce_product_options_general_product_data', 'wc_custom_add_custom_fields' );
function wc_custom_add_custom_fields() {
// Print a custom text field
woocommerce_wp_text_input( array(
'id' =
我使用的是基于Add a custom multi-select field to admin product options settings in Woocommerce生成的代码 // Display a multiselect field in "Linked Products" section
add_action( 'woocommerce_product_options_related', 'display_handles_product_field' );
function display_handles_product_fie
我正试图从一个简单的wooCommerce商店的订单详细信息中删除“Post定制”元框。div #postcustom出现在Orders中-->单击单个订单-->页面底部显示为“Custom”。我想摆脱它。有大量示例说明如何通过调用以下函数来完成此操作:
function remove_custom_field_meta_box()
{
remove_meta_box('postcustom', 'page', 'normal');
}
我已经(目前)把它连接到:
//Remove postcustom meta box
ad