Home / Admin / Change product edit tab order
Duplicate Snippet

Embed Snippet on Your Site

Change product edit tab order

Manually Sort

Code Preview
php
<?php
<pre class="wp-block-syntaxhighlighter-code">add_filter( 'wcv_product_meta_tabs', 'wcv_change_product_tab_order_manual' ); 
function wcv_change_product_tab_order_manual( $tabs ){ 
	WC_Vendors::log( array_keys( $tabs ) );
	$new_tabs = array(); 
	$new_tabs[ 'general' ] = $tabs[ 'general' ];
	$new_tabs[ 'seo' ] = $tabs[ 'seo' ];
	$new_tabs[ 'shipping' ] = $tabs[ 'shipping' ];
	$new_tabs[ 'inventory' ] = $tabs[ 'inventory' ];
	$new_tabs[ 'attribute' ] = $tabs[ 'attribute' ];
	$new_tabs[ 'variations' ] = $tabs[ 'variations' ];
	$new_tabs[ 'linked_product' ] = $tabs[ 'linked_product' ];
	return $new_tabs; 
}
</pre>

Comments

Add a Comment