הסתרת טאבים מעמוד מוצר

PHOTO EMBED

Tue May 18 2021 20:41:48 GMT+0000 (UTC)

Saved by @Shesek

/**
 * Remove product data tabs
 */
add_filter( 'woocommerce_product_tabs', '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['about'] );  	// Remove the additional information tab
	unset( $tabs['additional_information'] );
	unset( $tabs['wcfm_product_store_tab'] );
	unset( $tabs['wcfm_enquiry_tab'] );

    return $tabs;
}
content_copyCOPY