Home / Admin / Reorder dashboard navigation
Duplicate Snippet

Embed Snippet on Your Site

Reorder dashboard navigation

Bring the order page to the front of the product page

Code Preview
php
<?php
/**
 * Bring the order page to the front of the product page
 *
 * @param array $pages The pages.
 */
function add_test_page_nav( $pages ) {
	$order_page = array();
	if ( isset( $pages['order'] ) ) {
		$order_page = $pages['order'];
		unset( $pages['order'] );
		$pages = array_merge( array( 'order' => $order_page ), $pages );
	}
	return $pages;
}
// Hook into the navigation.
add_filter( 'wcv_pro_dashboard_urls', 'add_test_page_nav', 10, 1 );

Comments

Add a Comment