Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Put this code in your theme or child theme functions.php
- // Rename the main dashboard tab labels
- function change_dashboard_labels( $dashboard_urls ){
- // Products
- if ( array_key_exists('product', $dashboard_urls ) ) $dashboard_urls[ 'product' ][ 'label' ] = 'Mah Products';
- // Orders
- if ( array_key_exists('order', $dashboard_urls ) )$dashboard_urls[ 'order' ][ 'label' ] = 'Mah Orders';
- // Settings
- if ( array_key_exists('settings', $dashboard_urls ) )$dashboard_urls[ 'settings' ][ 'label' ] = 'Mah Settings';
- // Ratings
- if ( array_key_exists('rating', $dashboard_urls ) )$dashboard_urls[ 'rating' ][ 'label' ] = 'Mah Ratins';
- // Coupons
- if ( array_key_exists('shop_coupon', $dashboard_urls ) )$dashboard_urls[ 'shop_coupon' ][ 'label' ] = 'Mah Coupons';
- return $dashboard_urls;
- }
- add_filter( 'wcv_pro_dashboard_urls', 'change_dashboard_labels' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement