Copy đoạn code sau và nhúng vào file functions.php để dùng. <?php // backend add_filter( 'woocommerce_product_data_tabs', 'wpshare247_add_my_custom_product_data_tab' ); function wpshare247_add_my_custom_product_data_tab( $tabs ){ $tabs['wpshare247-custom-tab'] = array( 'label' => __('Wpshare247 TABS', 'woocommerce'), 'target' => 'wpshare247_custom_product_data', 'priority' => 25, 'class' => array('') ); return $tabs; } add_action( 'woocommerce_product_data_panels', 'wpshare247_add_my_custom_product_data_fields' ); function wpshare247_add_my_custom_product_data_fields(){ ?>...
Đăng ngày Chi tiết »