변경하고자 하는 탭 ‘priority’ 를 변경해 주면 순서를 변경할수 있습니다.
위치를 변경하고자 하는 탭의 priority 값보다 적게 또는 많게 해서 순서를 정할수 있습니다.

탭순서 변경전

탭순서 변경후
아래는 상품 탭 우커머스 기본 key 값과 priority 값 입니다.
상품 상세 : description – 10
기본 정보 : additional_information – 20
구매 후기 : reviews – 30
// WooDiscuz - WooCommerce Comments 탭을 구매후기 이전에 배치하기 add_filter( 'woocommerce_product_tabs', function($tabs){ $tabs['wpc_comment_tab']['priority'] = 25; return $tabs; },91);
0개의 댓글