הסרת טאבים:
add_filter( 'woocommerce_product_tabs', 'gs_woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { unset( $tabs['description'] );// Remove the description tab unset( $tabs['reviews'] ); // Remove the reviews tab //unset( $tabs['additional_information'] ); // Remove the additional information tab return $tabs; }
שינויי שמות טאבים:
add_filter( 'woocommerce_product_tabs', 'gs_woo_rename_tabs', 98 ); function woo_rename_tabs( $tabs ) { $tabs['brand_tab']['title'] = __( 'שירותים נוספים' ); return $tabs; }
סידור מחדש:
/** * Reorder product data tabs */ add_filter( 'woocommerce_product_tabs', 'gs_woo_reorder_tabs', 98 ); function gs_woo_reorder_tabs( $tabs ) { $tabs['reviews']['priority'] = 5; // Reviews first $tabs['description']['priority'] = 10; // Description second $tabs['additional_information']['priority'] = 15; // Additional information third return $tabs; }