我有这个代码,它自动添加产品的默认变化。attributes);} * added to last hook before rendering of Product Edit screenadd_action('woocommerce_product_write_panel_tabs', 'artbuild_default_product_attributes'); 我需要的是将默认变体保存到数据库</em
我想在产品帖子类型中添加一个复选框。php wp_nonce_field( basename( __FILE__ ), 'smashing_post_class_nonce' ); ?php _e( "Add a custom CSS class, which will be applied to WordPress' post class.", 'example' ); ?php echo esc_attr( get_post_meta( $objec