mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
7 lines
201 B
Text
7 lines
201 B
Text
add_filter( 'woocommerce_account_menu_items', 'wc_remove_my_account_dashboard' );
|
|
function wc_remove_my_account_dashboard( $menu_links ){
|
|
|
|
unset( $menu_links['dashboard'] );
|
|
return $menu_links;
|
|
|
|
}
|