Selamlar
Üstatlar bu sorunumu eklenti ile karşılayabilirim ancak sitemde gerekli veya gereksiz olarak mümkün olduğu kadar eklentiden kaçınıyorum.
Ürün sayfasındaki sekmeleri sıralamak hatta bunlara +1 tane (toplamda 5 adet) sekme eklemek istedim. Araştırmalarıma göre aşağıdaki kodu buldum ve tab isimlerini uygun bi şekilde yazdım.
PHP:
add_filter( 'woocommerce_product_tabs', 'reordered_tabs', 98 );
function reordered_tabs( $tabs ) {
$tabs['tab-description']['priority'] = 5;
$tabs['tab-woodmart_additional_tab']['priority'] = 10;
$tabs['tab-woodmart_custom_tab']['priority'] = 15;
$tabs['tab-reviews']['priority'] = 20;
$tabs['YENI-TAB']['priority'] = 25;
return $tabs;
ancak ne sıralaması değişti ne de yeni bir tab eklendi üstelik bir de aşağıdaki gibi bi hata aldım.
Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/icraoku1/video1.icraokulu.com/wp-content/themes/woodmart/woocommerce/single-product/tabs/tabs.php on line 60
İLGİLİ DOSYANIN 60. SATIRINDA
<?php call_user_func( $product_tab['callback'], $key, $product_tab ); ?>
bu kod yer alıyor. Kodlamadan anlamadığım için size sorma gereği duydum.
Yardımınızı rica ederim.
R10+ Woocommerce eklentisiz olarak tab düzenleme
2
●69